1 // sys.h
2 //
3 // This header file is included at the top of every source file,
4 // before any other header file.
5 // It is intended to add defines that are needed globally and
6 // to work around Operating System dependend incompatibilities.
7 
8 // EXAMPLE: If you use autoconf you can add the following here.
9 // #ifdef HAVE_CONFIG_H
10 // #include "config.h"
11 // #endif
12 
13 // EXAMPLE: You could add stuff like this here too
14 // (Otherwise add -DCWDEBUG to your CFLAGS).
15 // #if defined(WANTSDEBUGGING) && defined(HAVE_LIBCWD_BLAHBLAH)
16 // #define CWDEBUG
17 // #endif
18 
19 // The following is the libcwd related mandatory part.
20 // It must be included before any system header file is included!
21 #ifdef CWDEBUG
22 #ifndef _GNU_SOURCE
23 #define _GNU_SOURCE
24 #endif
25 #include <libcwd/sys.h>
26 #endif
27