~ubuntu-branches/ubuntu/intrepid/libspectre/intrepid

« back to all changes in this revision

Viewing changes to libspectre/spectre-macros.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Rosewarne
  • Date: 2008-01-06 21:58:55 UTC
  • Revision ID: james.westby@ubuntu.com-20080106215855-zmmkfhf4m3190zsj
Tags: upstream-0.2.0.ds
ImportĀ upstreamĀ versionĀ 0.2.0.ds

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of Libspectre.
 
2
 * 
 
3
 * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
 
4
 * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
 
5
 *
 
6
 * Libspectre is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2, or (at your option)
 
9
 * any later version.
 
10
 *
 
11
 * Libspectre is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
 */
 
20
 
 
21
#ifndef SPECTRE_MACROS_H
 
22
#define SPECTRE_MACROS_H
 
23
 
 
24
#ifdef  __cplusplus
 
25
#  define SPECTRE_BEGIN_DECLS  extern "C" {
 
26
#  define SPECTRE_END_DECLS    }
 
27
#else
 
28
#  define SPECTRE_BEGIN_DECLS
 
29
#  define SPECTRE_END_DECLS
 
30
#endif
 
31
 
 
32
#ifndef TRUE
 
33
#  define TRUE 1
 
34
#endif
 
35
#ifndef FALSE
 
36
#  define FALSE 0
 
37
#endif
 
38
 
 
39
#ifndef NULL
 
40
#  ifdef __cplusplus
 
41
#    define NULL        (0L)
 
42
#  else /* !__cplusplus */
 
43
#    define NULL        ((void*) 0)
 
44
#  endif /* !__cplusplus */
 
45
#endif
 
46
 
 
47
#endif /* SPECTRE_MACROS_H */