You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
3.1KB

  1. #define VERSION "0.74"
  2. /* Define to 1 to enable internal debugger, requires libcurses */
  3. #define C_DEBUG 0
  4. /* Define to 1 to enable screenshots, requires libpng */
  5. #define C_SSHOT 1
  6. /* Define to 1 to use opengl display output support */
  7. #define C_OPENGL 1
  8. /* Define to 1 to enable internal modem support, requires SDL_net */
  9. #define C_MODEM 1
  10. /* Define to 1 to enable IPX networking support, requires SDL_net */
  11. #define C_IPX 1
  12. /* Enable some heavy debugging options */
  13. #define C_HEAVY_DEBUG 0
  14. /* The type of cpu this host has */
  15. #define C_TARGETCPU X86
  16. //#define C_TARGETCPU X86_64
  17. /* Define to 1 to use x86 dynamic cpu core */
  18. #define C_DYNAMIC_X86 1
  19. /* Define to 1 to use recompiling cpu core. Can not be used together with the dynamic-x86 core */
  20. #define C_DYNREC 0
  21. /* Enable memory function inlining in */
  22. #define C_CORE_INLINE 0
  23. /* Enable the FPU module, still only for beta testing */
  24. #define C_FPU 1
  25. /* Define to 1 to use a x86 assembly fpu core */
  26. #define C_FPU_X86 1
  27. /* Define to 1 to use a unaligned memory access */
  28. #define C_UNALIGNED_MEMORY 1
  29. /* environ is defined */
  30. #define ENVIRON_INCLUDED 1
  31. /* environ can be linked */
  32. #define ENVIRON_LINKED 1
  33. /* Define to 1 if you have the <ddraw.h> header file. */
  34. #define HAVE_DDRAW_H 1
  35. /* Define to 1 if you want serial passthrough support (Win32 only). */
  36. #define C_DIRECTSERIAL 1
  37. #define GCC_ATTRIBUTE(x) /* attribute not supported */
  38. #define GCC_UNLIKELY(x) (x)
  39. #define GCC_LIKELY(x) (x)
  40. #define INLINE __forceinline
  41. #define DB_FASTCALL __fastcall
  42. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  43. #pragma warning(disable : 4996)
  44. #endif
  45. #ifdef _MSC_VER
  46. typedef double Real64;
  47. /* The internal types */
  48. typedef unsigned char BYTE;
  49. typedef unsigned char Bit8u;
  50. typedef signed char Bit8s;
  51. typedef unsigned short Bit16u;
  52. typedef signed short Bit16s;
  53. typedef unsigned long Bit32u;
  54. typedef signed long Bit32s;
  55. typedef unsigned __int64 Bit64u;
  56. typedef signed __int64 Bit64s;
  57. typedef unsigned int Bitu;
  58. typedef signed int Bits;
  59. #else
  60. /// Jeff-Russ modified to be uniform across C++ implementations:
  61. // The internal types:
  62. #include <stdint.h>
  63. typedef unsigned char BYTE;
  64. typedef int64_t __int64;
  65. typedef double Real64;
  66. typedef unsigned char Bit8u;
  67. typedef signed char Bit8s;
  68. typedef uint16_t Bit16u;
  69. typedef int16_t Bit16s;
  70. typedef uint32_t Bit32u;
  71. typedef int32_t Bit32s;
  72. typedef uint64_t Bit64u;
  73. typedef int64_t Bit64s;
  74. typedef Bit32u Bitu;
  75. typedef Bit32s Bits;
  76. #endif
  77. /// Jeff-Russ PUT PLATFORM SPECIFIC STUFF HERE:
  78. #ifndef _WIN32 /// __forceinline likely not needed
  79. #define __forceinline inline /// outside of windows.
  80. #endif
  81. #ifdef _WIN32 // covers both 32 and 64-bit
  82. #define INLINE __forceinline
  83. #endif
  84. //#elif __APPLE__
  85. // #include "TargetConditionals.h"
  86. // #define INLINE inline /// apple has no forceinline
  87. //#elif __linux
  88. // #define INLINE inline
  89. //#elif __unix
  90. // #define INLINE inline
  91. //#elif __posix
  92. // #define INLINE inline
  93. //#else
  94. // #error Unsupported Operating System
  95. //#endif