WIN32 is defined by the user, _WIN32 is set by the compiler to indicate
the platform. It is better to use the latter.
This commit replaces WIN32 with _WIN32 in source and header files of
lib/cdt, lib/cgraph and lib/pathplan.
#include <stddef.h> /* size_t */
#include <string.h>
-#ifdef WIN32
+#ifdef _WIN32
#undef __EXPORT__
#undef __IMPORT__
#define __EXPORT__ __declspec (dllexport)
#include <stdio.h>
#include <cghdr.h>
-#if defined(WIN32)
+#if defined(_WIN32)
#include <io.h>
#endif
#endif
/*visual studio*/
-#ifdef WIN32
+#ifdef _WIN32
#ifndef PATHPLAN_EXPORTS
#define extern __declspec(dllimport)
#endif
/* this is computed from the above */
array2 vis;
};
-#ifdef WIN32
+#ifdef _WIN32
#ifndef PATHPLAN_EXPORTS
#define extern __declspec(dllimport)
#endif