INCLUDE = -I.. -Ilibjp3dvm
-AR = ar
-
INSTALL_LIBDIR = $(prefix)/lib
headerdir = openjpeg3d-$(JP3D_MAJOR).$(JP3D_MINOR)
INSTALL_INCLUDE = $(prefix)/include/$(headerdir)
#include <stdlib.h>
#include <string.h>
#include "../libjp3dvm/openjpeg.h"
-#ifdef WIN32
+#ifdef _WIN32
#include "windirent.h"
#else
#include <dirent.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
#include "getopt.h"\r
#include "convert.h"\r
\r
-#ifndef WIN32\r
+#ifdef _WIN32\r
+#include <windows.h>\r
+#else\r
#define stricmp strcasecmp\r
#define strnicmp strncasecmp\r
-#endif\r
+#endif /* _WIN32 */\r
\r
/* ----------------------------------------------------------------------- */\r
static double calc_PSNR(opj_volume_t *original, opj_volume_t *decoded)\r
#include "getopt.h"\r
#include "convert.h"\r
\r
-#ifndef WIN32\r
+#ifdef _WIN32\r
+#include <windows.h>\r
+#else\r
#define stricmp strcasecmp\r
#define strnicmp strncasecmp\r
-#endif\r
+#endif /* _WIN32 */\r
\r
/* ----------------------------------------------------------------------- */\r
\r
// Utility functions\r
// ==========================================================\r
\r
-#ifndef WIN32\r
+#ifndef _WIN32\r
static char*\r
i2a(unsigned i, char *a, unsigned r) {\r
if (i/r > 0) a = i2a(i/r,a,r);\r
return a;\r
}\r
\r
-#endif // !WIN32\r
+#endif // !_WIN32\r
\r
/* ----------------------------------------------------------------------- */\r
\r
* POSSIBILITY OF SUCH DAMAGE.\r
*/\r
\r
-#ifdef WIN32\r
+#ifdef _WIN32\r
#include <windows.h>\r
#else\r
#include <sys/time.h>\r
#include <sys/resource.h>\r
#include <sys/times.h>\r
-#endif /* WIN32 */\r
+#endif /* _WIN32 */\r
#include "opj_includes.h"\r
\r
double opj_clock() {\r
-#ifdef WIN32\r
+#ifdef _WIN32\r
/* WIN32: use QueryPerformance (very accurate) */\r
LARGE_INTEGER freq , t ;\r
/* freq is the clock speed of the CPU */\r
procTime = t.ru_utime.tv_sec + t.ru_stime.tv_sec;\r
/* (2b) More precisely! Get the microseconds part ! */\r
return ( procTime + (t.ru_utime.tv_usec + t.ru_stime.tv_usec) * 1e-6 ) ;\r
-#endif\r
+#endif /* _WIN32 */\r
}\r
\r
void* opj_malloc( size_t size ) {\r
* POSSIBILITY OF SUCH DAMAGE.\r
*/\r
\r
-#ifdef WIN32\r
+#ifdef _WIN32\r
#include <windows.h>\r
-#endif /* WIN32 */\r
+#endif /* _WIN32 */\r
\r
#include "opj_includes.h"\r
#define JP3D_VERSION "1.3.0"\r
/* ---------------------------------------------------------------------- */\r
-#ifdef WIN32\r
+#ifdef _WIN32\r
#ifndef OPJ_STATIC\r
BOOL APIENTRY\r
DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {\r
return TRUE;\r
}\r
#endif /* OPJ_STATIC */\r
-#endif /* WIN32 */\r
+#endif /* _WIN32 */\r
\r
/* ---------------------------------------------------------------------- */\r
\r