sys.hpp 763 B

1234567891011121314151617181920212223242526
  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. // EXAMPLE: If you use autoconf you can add the following here.
  8. // #ifdef HAVE_CONFIG_H
  9. // #include "config.h"
  10. // #endif
  11. // EXAMPLE: You could add stuff like this here too
  12. // (Otherwise add -DCWDEBUG to your CFLAGS).
  13. // #if defined(WANTSDEBUGGING) && defined(HAVE_LIBCWD_BLAHBLAH)
  14. // #define CWDEBUG
  15. // #endif
  16. // The following is the libcwd related mandatory part.
  17. // It must be included before any system header file is included!
  18. #ifdef CWDEBUG
  19. #ifndef _GNU_SOURCE
  20. #define _GNU_SOURCE
  21. #endif
  22. #include <libcwd/sys.h>
  23. #endif