gc_version.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) 1994 by Xerox Corporation. All rights reserved.
  3. * Copyright (c) 1996 by Silicon Graphics. All rights reserved.
  4. * Copyright (c) 1998 by Fergus Henderson. All rights reserved.
  5. * Copyright (c) 2000-2009 by Hewlett-Packard Development Company.
  6. * All rights reserved.
  7. *
  8. * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
  9. * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
  10. *
  11. * Permission is hereby granted to use or copy this program
  12. * for any purpose, provided the above notices are retained on all copies.
  13. * Permission to modify the code and to distribute modified code is granted,
  14. * provided the above notices are retained, and a notice that the code was
  15. * modified is included with the above copyright notice.
  16. */
  17. /* This should never be included directly; it is included only from gc.h. */
  18. #if defined(GC_H)
  19. /* The policy regarding version numbers: development code has odd */
  20. /* "minor" number (and "micro" part is 0); when development is finished */
  21. /* and a release is prepared, "minor" number is incremented (keeping */
  22. /* "micro" number still zero), whenever a defect is fixed a new release */
  23. /* is prepared incrementing "micro" part to odd value (the most stable */
  24. /* release has the biggest "micro" number). */
  25. /* The version here should match that in configure/configure.ac */
  26. /* Eventually this one may become unnecessary. For now we need */
  27. /* it to keep the old-style build process working. */
  28. #define GC_TMP_VERSION_MAJOR 7
  29. #define GC_TMP_VERSION_MINOR 7
  30. #define GC_TMP_VERSION_MICRO 0 /* 7.7.0 */
  31. #ifdef GC_VERSION_MAJOR
  32. # if GC_TMP_VERSION_MAJOR != GC_VERSION_MAJOR \
  33. || GC_TMP_VERSION_MINOR != GC_VERSION_MINOR \
  34. || GC_TMP_VERSION_MICRO != GC_VERSION_MICRO
  35. # error Inconsistent version info. Check README.md, include/gc_version.h and configure.ac.
  36. # endif
  37. #else
  38. # define GC_VERSION_MAJOR GC_TMP_VERSION_MAJOR
  39. # define GC_VERSION_MINOR GC_TMP_VERSION_MINOR
  40. # define GC_VERSION_MICRO GC_TMP_VERSION_MICRO
  41. #endif /* !GC_VERSION_MAJOR */
  42. #endif