]> Creatis software - gdcm.git/commitdiff
(Try to) fix troubles with WIN32 vs _WIN32 at compile time
authorjpr <jpr>
Wed, 30 May 2007 11:05:47 +0000 (11:05 +0000)
committerjpr <jpr>
Wed, 30 May 2007 11:05:47 +0000 (11:05 +0000)
Example/Volume2Dicom.cxx
src/gdcmopenjpeg/codec/CMakeLists.txt
src/gdcmopenjpeg/codec/image_to_j2k.c
src/gdcmopenjpeg/libopenjpeg/j2k_lib.c
src/gdcmopenjpeg/libopenjpeg/openjpeg.c

index 8ab6208..4ed808b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: Volume2Dicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/05/23 14:18:04 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/05/30 11:05:47 $
+  Version:   $Revision: 1.13 $
                                                                                  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -33,7 +33,7 @@
 #include <time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef WIN32
+#ifdef _WIN32
    #define stat _stat
 #endif
 
index 3f3c7d5..00de4f3 100644 (file)
@@ -37,7 +37,8 @@ IF(NOT BUILD_SHARED_LIBS)
 ENDIF(NOT BUILD_SHARED_LIBS)
 
 # Loop over all executables:
-FOREACH(exe j2k_to_image image_to_j2k)
+#FOREACH(exe j2k_to_image image_to_j2k)
+FOREACH(exe  image_to_j2k)
   ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
   TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg)
   # On unix you need to link to the math library:
index 8120086..427a5ef 100644 (file)
@@ -35,7 +35,7 @@
 #include "compat/getopt.h"
 #include "convert.h"
 
-#ifndef WIN32
+#ifndef _WIN32
 #define stricmp strcasecmp
 #define strnicmp strncasecmp
 #endif
index 230be80..3a6fae1 100644 (file)
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef WIN32
+#ifdef _WIN32
 #include <windows.h>
 #else
 #include <sys/time.h>
 #include <sys/resource.h>
 #include <sys/times.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
 #include "opj_includes.h"
 
 double opj_clock() {
-#ifdef WIN32
+#ifdef _WIN32
   /* WIN32: use QueryPerformance (very accurate) */
     LARGE_INTEGER freq , t ;
     /* freq is the clock speed of the CPU */
index 6097cdb..3142911 100644 (file)
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef WIN32
+#ifdef _WIN32
 #include <windows.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
 
 #include "opj_includes.h"
 
 /* ---------------------------------------------------------------------- */
-#ifdef WIN32
+#ifdef _WIN32
 #ifndef OPJ_STATIC
 BOOL APIENTRY
 DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {