Commit 958fcddc authored by remicres's avatar remicres
Browse files

ADD: detect if system is 32 or 64 bits

parent abf96caa
...@@ -21,6 +21,24 @@ ...@@ -21,6 +21,24 @@
#include "otbImageFileWriter.h" #include "otbImageFileWriter.h"
#endif #endif
// Check windows
#if _WIN32 || _WIN64
#if _WIN64
#define ENVIRONMENT64
#else
#define ENVIRONMENT32
#endif
#endif
// Check GCC
#if __GNUC__
#if __x86_64__ || __ppc64__
#define ENVIRONMENT64
#else
#define ENVIRONMENT32
#endif
#endif
/* /*
* This function returns TRUE if the process #myrank is assigned * This function returns TRUE if the process #myrank is assigned
* to the task #div in a pool of #nprocs processes * to the task #div in a pool of #nprocs processes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment