rcdefs.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/rcdefs.h
  3. // Purpose: Fallback for the generated rcdefs.h under the lib directory
  4. // Author: Mike Wetherell
  5. // Copyright: (c) 2005 Mike Wetherell
  6. // Licence: wxWindows licence
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef _WX_RCDEFS_H
  9. #define _WX_RCDEFS_H
  10. #ifdef __GNUC__
  11. // We must be using windres which uses gcc as its preprocessor. We do need
  12. // to generate the manifest then as gcc doesn't do it automatically and we
  13. // can define the architecture macro on our own as all the usual symbols
  14. // are available (unlike with Microsoft RC.EXE which doesn't predefine
  15. // anything useful at all).
  16. #ifndef wxUSE_RC_MANIFEST
  17. #define wxUSE_RC_MANIFEST 1
  18. #endif
  19. #if defined __i386__
  20. #ifndef WX_CPU_X86
  21. #define WX_CPU_X86
  22. #endif
  23. #elif defined __x86_64__
  24. #ifndef WX_CPU_AMD64
  25. #define WX_CPU_AMD64
  26. #endif
  27. #elif defined __ia64__
  28. #ifndef WX_CPU_IA64
  29. #define WX_CPU_IA64
  30. #endif
  31. #endif
  32. #endif
  33. // Don't do anything here for the other compilers, in particular don't define
  34. // WX_CPU_X86 here as we used to do. If people define wxUSE_RC_MANIFEST, they
  35. // must also define the architecture constant correctly.
  36. #endif