config.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. *
  3. * NMEA library
  4. * URL: http://nmea.sourceforge.net
  5. * Author: Tim (xtimor@gmail.com)
  6. * Licence: http://www.gnu.org/licenses/lgpl.html
  7. * $Id: config.h 17 2008-03-11 11:56:11Z xtimor $
  8. *
  9. */
  10. #ifndef __NMEA_CONFIG_H__
  11. #define __NMEA_CONFIG_H__
  12. #define NMEA_VERSION ("0.5.3")
  13. #define NMEA_VERSION_MAJOR (0)
  14. #define NMEA_VERSION_MINOR (5)
  15. #define NMEA_VERSION_PATCH (3)
  16. #define NMEA_CONVSTR_BUF (256)
  17. #define NMEA_TIMEPARSE_BUF (256)
  18. #if defined(WINCE) || defined(UNDER_CE)
  19. # define NMEA_CE
  20. #endif
  21. #if defined(WIN32) || defined(NMEA_CE)
  22. # define NMEA_WIN
  23. #else
  24. # define NMEA_UNI
  25. #endif
  26. #if defined(NMEA_WIN) && (_MSC_VER >= 1400)
  27. # pragma warning(disable: 4996) /* declared deprecated */
  28. #endif
  29. #if defined(_MSC_VER)
  30. # define NMEA_POSIX(x) _##x
  31. # define NMEA_INLINE __inline
  32. #else
  33. # define NMEA_POSIX(x) x
  34. # define NMEA_INLINE inline
  35. #endif
  36. #if !defined(NDEBUG) && !defined(NMEA_CE)
  37. # include <assert.h>
  38. # define NMEA_ASSERT(x) assert(x)
  39. #else
  40. # define NMEA_ASSERT(x)
  41. #endif
  42. #endif /* __NMEA_CONFIG_H__ */