s_lib_version.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* @(#)s_lib_ver.c 5.1 93/09/24 */
  2. /*
  3. * ====================================================
  4. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  5. *
  6. * Developed at SunPro, a Sun Microsystems, Inc. business.
  7. * Permission to use, copy, modify, and distribute this
  8. * software is freely granted, provided that this notice
  9. * is preserved.
  10. * ====================================================
  11. */
  12. #if defined(LIBM_SCCS) && !defined(lint)
  13. static char rcsid[] = "$NetBSD: s_lib_version.c,v 1.6 1995/05/10 20:47:44 jtc Exp $";
  14. #endif
  15. /*
  16. * MACRO for standards
  17. */
  18. #include "math.h"
  19. #include "math_private.h"
  20. /*
  21. * define and initialize _LIB_VERSION
  22. */
  23. libm_hidden_proto(_LIB_VERSION)
  24. #ifdef _POSIX_MODE
  25. _LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
  26. #else
  27. #ifdef _XOPEN_MODE
  28. _LIB_VERSION_TYPE _LIB_VERSION = _XOPEN_;
  29. #else
  30. #ifdef _SVID3_MODE
  31. _LIB_VERSION_TYPE _LIB_VERSION = _SVID_;
  32. #else /* default _IEEE_MODE */
  33. _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
  34. #endif
  35. #endif
  36. #endif
  37. libm_hidden_data_def(_LIB_VERSION)