root/src/noitedit/compat.h

Revision bafab25395cb398ddf5eae42145f0d0bfc00ec22, 0.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

import of libedit... prepare to hack

  • Property mode set to 100644
Line 
1 #ifndef __LIBEDIT_COMPATH_H
2 #define __LIBEDIT_COMPATH_H
3
4 #include "noit_defines.h"
5
6 #ifndef __RCSID
7 #define  __RCSID(x)
8 #endif
9 #ifndef __COPYRIGHT
10 #define  __COPYRIGHT(x)
11 #endif
12
13 #ifndef HAVE_VIS_H
14 /* string visual representation - may want to reimplement */
15 #define strvis(d,s,m)   strcpy(d,s)
16 #define strunvis(d,s)   strcpy(d,s)
17 #endif
18
19 #ifndef HAVE_FGETLN
20 #include "fgetln.h"
21 #endif
22
23 #ifndef HAVE_ISSETUGID
24 #define issetugid() (getuid()!=geteuid() || getegid()!=getgid())
25 #endif
26
27 #ifndef HAVE_STRLCPY
28 #include "strlcpy.h"
29 #endif
30
31 #if HAVE_SYS_CDEFS_H
32 #include <sys/cdefs.h>
33 #endif
34
35 #ifndef __P
36 #ifdef __STDC__
37 #define __P(x)  x
38 #else
39 #define __P(x)  ()
40 #endif
41 #endif
42
43 #endif
Note: See TracBrowser for help on using the browser.