scheme48arch.h.in 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. *
  4. * Authors: Mike Sperber, Marcus Crestani, Harald Glab-Phlak
  5. */
  6. /*
  7. * For building and linking DLLs on Windows, we need to mark functions
  8. * the DLL calls in Scheme 48 and vice versa explicitly---and differently
  9. * depending on whether we're compiling the DLL or Scheme 48 itself.
  10. *
  11. * Therefore, on Windows, we assume that __COMPILING_SCHEME48_ITSELF__
  12. * is defined when Scheme 48 itself is being compiled, and not when
  13. * we're compiling something external against it.
  14. */
  15. #if defined(__CYGWIN__) || defined(_WIN32)
  16. # ifdef __COMPILING_SCHEME48_ITSELF__
  17. # define S48_EXTERN_ADD_ONS __declspec(dllexport)
  18. # else
  19. # define S48_EXTERN_ADD_ONS __declspec(dllimport)
  20. # endif
  21. #endif
  22. #ifndef S48_EXTERN_ADD_ONS
  23. # define S48_EXTERN_ADD_ONS
  24. #endif
  25. #define S48_EXTERN extern S48_EXTERN_ADD_ONS
  26. /*
  27. * We repeat this so we won't have to install sysdep.h.
  28. */
  29. /* Check for sizeof (void *) */
  30. #undef SIZEOF_VOID_P
  31. /* Check for the number of bits per byte */
  32. #undef BITS_PER_BYTE
  33. /* Define if building with BIBOP GC. */
  34. #undef S48_GC_BIBOP
  35. /* Define if building with two-space GC. */
  36. #undef S48_GC_TWOSPACE
  37. /* Define to 1 if you have the <stdint.h> header file. */
  38. #undef HAVE_STDINT_H
  39. /* Define to 1 if you have the <sys/types.h> header file. */
  40. #undef HAVE_SYS_TYPES_H
  41. /* Define to the type of an unsigned integer type of width exactly 16 bits if
  42. such a type exists and the standard includes do not define it. */
  43. #undef uint16_t