config.h 874 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* This file has been manually hacked together for the Mac CFM Carbon build - Frank. */
  2. #ifndef _ODE_CONFIG_H_
  3. #define _ODE_CONFIG_H_
  4. /* standard system headers */
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <math.h>
  8. #include <string.h>
  9. #include <stdarg.h>
  10. #include <malloc.h>
  11. #include <alloca.h>
  12. #include <float.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /* #define PENTIUM 1 -- not a pentium */
  17. /* integer types (we assume int >= 32 bits) */
  18. typedef char int8;
  19. typedef unsigned char uint8;
  20. typedef int int32;
  21. typedef unsigned int uint32;
  22. #ifdef PRECISION_DOUBLE
  23. /*select the base floating point type*/
  24. #define dDOUBLE 1
  25. /* the floating point infinity */
  26. #define dInfinity DBL_MAX
  27. #else
  28. /* select the base floating point type */
  29. #define dSINGLE 1
  30. /* the floating point infinity */
  31. #define dInfinity FLT_MAX
  32. #endif
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif