~ubuntu-branches/ubuntu/trusty/libpam-tacplus/trusty

« back to all changes in this revision

Viewing changes to libtac/include/cdefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeroen Nijhof
  • Date: 2011-09-05 16:01:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110905160100-7o4aqefbiflj4232
Tags: upstream-1.3.5
ImportĀ upstreamĀ versionĀ 1.3.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* cdefs.h
 
2
 * 
 
3
 * Copyright (C) 2010, Pawel Krawczyk <pawel.krawczyk@hush.com> and
 
4
 * Jeroen Nijhof <jeroen@nijhofnet.nl>
 
5
 *
 
6
 * This program 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 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program 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 - see the file COPYING.
 
18
 *
 
19
 * See `CHANGES' file for revision history.
 
20
 */
 
21
 
 
22
#ifndef _CDEFS_H
 
23
#define _CDEFS_H
 
24
 
 
25
#undef __P
 
26
#if defined(__STDC__) || defined(__cplusplus)
 
27
#define __P(p) p
 
28
#else
 
29
#define __P(p)
 
30
#endif
 
31
#define _PTR      void *
 
32
#define _ANDi     ,
 
33
#define _NOARGS   void
 
34
#define _CONST    const
 
35
#define _VOLATILE volatile
 
36
#define _SIGNED   signed
 
37
#define _DOTS     , ...
 
38
#define _VOID     void
 
39
#define _EXFUN(name, proto) name proto
 
40
#define _DEFUN(name, arglist, args) name(args)
 
41
#define _DEFUN_VOID(name) name(_NOARGS)
 
42
#define _CAST_VOID (void)
 
43
#ifndef _LONG_DOUBLE
 
44
#define _LONG_DOUBLE long double
 
45
#endif
 
46
#ifndef _PARAMS
 
47
#define _PARAMS(paramlist)              paramlist
 
48
#endif
 
49
 
 
50
/* Support gcc's __attribute__ facility.  */
 
51
 
 
52
#define _ATTRIBUTE(attrs) __attribute__ ((attrs))
 
53
 
 
54
#if defined(__cplusplus)
 
55
#define __BEGIN_DECLS extern "C" {
 
56
#define __END_DECLS }
 
57
#else
 
58
#define __BEGIN_DECLS
 
59
#define __END_DECLS
 
60
#endif
 
61
 
 
62
#endif