config.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /* config.h.in. Generated from configure.ac by autoheader. */
  2. /* Include pthread support for binary relocation? */
  3. //#undef BR_PTHREAD
  4. /* define to compile in debug checks */
  5. #define DEBUG
  6. /* Use binary relocation? */
  7. //#undef ENABLE_BINRELOC
  8. /* define if sqdbg should be enabled */
  9. //#undef ENABLE_SQDBG
  10. /* Use the Apple OpenGL framework. */
  11. //#undef HAVE_APPLE_OPENGL_FRAMEWORK
  12. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  13. */
  14. //#undef HAVE_DIRENT_H
  15. /* Define if you have the iconv() function. */
  16. //#undef HAVE_ICONV
  17. /* Define to 1 if you have the <inttypes.h> header file. */
  18. //#undef HAVE_INTTYPES_H
  19. /* Define to 1 if you have the `pthread' library (-lpthread). */
  20. //#undef HAVE_LIBPTHREAD
  21. /* Define to 1 if you have the <memory.h> header file. */
  22. #define HAVE_MEMORY_H 1
  23. /* Define to 1 if you have the `mkdir' function. */
  24. //#define HAVE_MKDIR
  25. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  26. //#undef HAVE_NDIR_H
  27. /* Define if you have POSIX threads libraries and header files. */
  28. //#undef HAVE_PTHREAD
  29. /* Define to 1 if you have the <stdint.h> header file. */
  30. //#undef HAVE_STDINT_H
  31. /* Define to 1 if you have the <stdlib.h> header file. */
  32. #define HAVE_STDLIB_H 1
  33. /* Define to 1 if you have the `strdup' function. */
  34. #define HAVE_STRDUP 1
  35. /* Define to 1 if you have the <strings.h> header file. */
  36. //#define HAVE_STRINGS_H
  37. /* Define to 1 if you have the <string.h> header file. */
  38. #define HAVE_STRING_H 1
  39. /* Define to 1 if you have the `strstr' function. */
  40. #define HAVE_STRSTR 1
  41. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  42. */
  43. //#undef HAVE_SYS_DIR_H
  44. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  45. */
  46. //#undef HAVE_SYS_NDIR_H
  47. /* Define to 1 if you have the <sys/stat.h> header file. */
  48. //#undef HAVE_SYS_STAT_H
  49. /* Define to 1 if you have the <sys/types.h> header file. */
  50. //#undef HAVE_SYS_TYPES_H
  51. /* Define to 1 if you have the <unistd.h> header file. */
  52. //#undef HAVE_UNISTD_H
  53. /* Define to 1 if you have the <windows.h> header file. */
  54. #define HAVE_WINDOWS_H 1
  55. /* Define as const if the declaration of iconv() needs const. */
  56. #define ICONV_CONST const
  57. /* Define to the address where bug reports for this package should be sent. */
  58. #define PACKAGE_BUGREPORT ""
  59. /* Define to the full name of this package. */
  60. #define PACKAGE_NAME "supertux"
  61. /* Define to the full name and version of this package. */
  62. #define PACKAGE_STRING "supertux 0.3.2-SVN"
  63. /* Define to the one symbol short name of this package. */
  64. #define PACKAGE_TARNAME "supertux"
  65. /* Define to the version of this package. */
  66. #define PACKAGE_VERSION "0.3.2-SVN"
  67. /* Define to necessary symbol if this constant uses a non-standard name on
  68. your system. */
  69. //#undef PTHREAD_CREATE_JOINABLE
  70. /* The size of a `void *', as computed by sizeof. */
  71. #define SIZEOF_VOID_P 4
  72. /* Define to 1 if you have the ANSI C header files. */
  73. #define STDC_HEADERS 1
  74. /* Define to 1 if your processor stores words with the most significant byte
  75. first (like Motorola and SPARC, unlike Intel and VAX). */
  76. // #undef WORDS_BIGENDIAN
  77. /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
  78. `char[]'. */
  79. // #undef YYTEXT_POINTER
  80. /* Define to empty if `const' does not conform to ANSI C. */
  81. // #undef const
  82. #if SIZEOF_VOID_P == 8
  83. #define _SQ64
  84. #endif
  85. /* Disable some very annoying warnings */
  86. #pragma warning(disable: 4244)
  87. #pragma warning(disable: 4267)
  88. #pragma warning(disable: 4800)
  89. #pragma warning(disable: 4103)
  90. /* some stuff is not in standard lib in msvc */
  91. #define _CRT_SECURE_NO_DEPRECATE
  92. #define snprintf _snprintf
  93. #define strcasecmp _strcmpi
  94. #define strncasecmp _strncmpi
  95. #define strdup _strdup
  96. #ifndef M_PI
  97. #define M_PI 3.14159265358979323846
  98. #endif
  99. #ifndef M_PI_2
  100. #define M_PI_2 (3.14159265358979323846/2.0)
  101. #endif
  102. static inline int roundf(float val)
  103. {
  104. if(val > 0) {
  105. return (int) (val + 0.5f);
  106. } else {
  107. return (int) (val - 0.5f);
  108. }
  109. }
  110. // msvc has no sscanf it seems, this breaks demo recording, but who cares...
  111. static inline int sscanf(...)
  112. {
  113. return -1;
  114. }