Leaked source code of windows server 2003
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.

132 lines
2.3 KiB

  1. /*
  2. * $Id: osdep.h,v 1.6 1995/07/21 12:46:14 dfr Exp $
  3. *
  4. * Copyright (c) RenderMorphics Ltd. 1993, 1994
  5. * Version 1.1
  6. *
  7. * All rights reserved.
  8. *
  9. * This file contains private, unpublished information and may not be
  10. * copied in part or in whole without express permission of
  11. * RenderMorphics Ltd.
  12. *
  13. */
  14. /* Check that the programmer gives at least one useable definition */
  15. #define NO_MACHINE
  16. #ifdef WIN32
  17. #define MAXPATH 256
  18. #define PATHSEP ';'
  19. #define FILESEP '\\'
  20. /*
  21. #define RLINLINE __inline
  22. */
  23. #define RLINLINE
  24. #undef NO_MACHINE
  25. #define DEFAULT_GAMMA DTOVAL(1.4)
  26. #endif /* WIN32 */
  27. #ifdef __psx__
  28. #define MAXPATH 256
  29. #define PATHSEP ';'
  30. #define FILESEP '\\'
  31. #define RLINLINE
  32. #define FIXED_POINT_API
  33. #undef NO_MACHINE
  34. #endif /* PSX */
  35. #if defined(DOS) || defined(__WINDOWS_386__)
  36. #define MAXPATH 256
  37. #define PATHSEP ';'
  38. #define FILESEP '\\'
  39. #define RLINLINE
  40. #define DEFAULT_GAMMA DTOVAL(1.4)
  41. #undef NO_MACHINE
  42. #endif /* DOS */
  43. #ifdef MAC
  44. #define MAXPATH 1024
  45. #define FILESEP ':'
  46. #define PATHSEP '\0'
  47. #define BIG_ENDIAN
  48. #define DONT_UNROLL
  49. #undef NO_MACHINE
  50. #define RLINLINE inline
  51. #endif /* MAC */
  52. #ifdef POWERMAC
  53. #define MAXPATH 1024
  54. #define FILESEP ':'
  55. #define PATHSEP '\0'
  56. #define BIG_ENDIAN
  57. #define DONT_UNROLL
  58. #undef NO_MACHINE
  59. #define RLINLINE inline
  60. #endif /* POWERMAC */
  61. #ifdef __FreeBSD__
  62. #define MAXPATH 1024
  63. #define PATHSEP ':'
  64. #define FILESEP '/'
  65. #define RLINLINE
  66. #define DEFAULT_GAMMA DTOVAL(1.4)
  67. #undef NO_MACHINE
  68. #endif /* __FreeBSD__ */
  69. #if defined(sun) || defined(sgi)
  70. #define MAXPATH 1024
  71. #define PATHSEP ':'
  72. #define FILESEP '/'
  73. #define RLINLINE
  74. #define DEFAULT_GAMMA DTOVAL(2.2)
  75. #define BIG_ENDIAN
  76. #undef NO_MACHINE
  77. #endif /* sun */
  78. #ifdef NO_MACHINE
  79. #error There appears to be no machine defined...
  80. #endif
  81. #ifdef FIXED_POINT_API
  82. #ifdef USE_FLOAT
  83. #define APITOVAL(x) FXTOVAL(x)
  84. #define VALTOAPI(x) VALTOFX(x)
  85. #else
  86. #define APITOVAL(x) (x)
  87. #define VALTOAPI(x) (x)
  88. #endif
  89. #else
  90. #ifdef USE_FLOAT
  91. #define APITOVAL(x) (x)
  92. #define VALTOAPI(x) (x)
  93. #else
  94. #define APITOVAL(x) DTOVAL(x)
  95. #define VALTOAPI(x) VALTOD(x)
  96. #endif
  97. #endif