root/src/noitedit/compat.h

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

pull header-space into the noitedir dir, this makes it stand apart from libedit more trivially.

  • 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 "noitedit/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 "noitedit/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.