lprefix.h 651 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. ** $Id: $
  3. ** Definitions for Lua code that must come before any other header file
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lprefix_h
  7. #define lprefix_h
  8. /*
  9. ** Allows POSIX/XSI stuff
  10. */
  11. #if !defined(_XOPEN_SOURCE)
  12. #define _XOPEN_SOURCE 600
  13. #endif
  14. /*
  15. ** Allows manipulation of large files in gcc and some other compilers
  16. */
  17. #if !defined(_FILE_OFFSET_BITS)
  18. #define _LARGEFILE_SOURCE 1
  19. #define _FILE_OFFSET_BITS 64
  20. #endif
  21. /*
  22. ** Windows stuff
  23. */
  24. #if defined(_WIN32) /* { */
  25. #if !defined(_CRT_SECURE_NO_WARNINGS)
  26. #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */
  27. #endif
  28. #endif /* } */
  29. #endif