config.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: config.h /main/4 1996/06/11 17:36:26 cde-hal $ */
  24. #ifndef _config_h
  25. #define _config_h 1
  26. #include <cde_config.h> // determine endianess
  27. #if defined(WORDS_BIGENDIAN)
  28. # define OLIAS_BIG_ENDIAN
  29. # undef OLIAS_LITTLE_ENDIAN
  30. #else
  31. # define OLIAS_LITTLE_ENDIAN
  32. # undef OLIAS_BIG_ENDIAN
  33. #endif
  34. #ifdef OLIAS_LITTLE_ENDIAN
  35. # define MMDB_LITTLE_ENDIAN // i386
  36. #else
  37. # ifdef OLIAS_BIG_ENDIAN
  38. # define MMDB_BIG_ENDIAN // sun, rs/6000, hp
  39. # else
  40. # ifdef OLIAS_DEFAULT_ENDIAN
  41. # ifdef MMDB_BIG_ENDIAN
  42. # undef MMDB_BIG_ENDIAN
  43. # endif
  44. # ifdef MMDB_LITTLE_ENDIAN
  45. # undef MMDB_LITTLE_ENDIAN
  46. # endif
  47. # endif
  48. # endif
  49. #endif
  50. #endif