Commit c6de808f authored by pacanows's avatar pacanows

Changing WIN32 to _WIN32

parent 9ca52a0d
......@@ -153,7 +153,7 @@ std::ostream& operator<<(std::ostream& out, const timer& t)
unsigned int timer::current_time() const
{
#ifdef WIN32
#ifdef _WIN32
SYSTEMTIME res;
GetSystemTime(&res);
return (unsigned int)(res.wSecond + res.wMinute*60 + res.wHour*360);
......
......@@ -256,7 +256,7 @@ template<typename T> T clamp(T x, T a, T b)
return std::max<T>(std::min<T>(x, b), a);
}
#ifdef WIN32
#ifdef _WIN32
#define NOT_IMPLEMENTED() \
std::cerr << "<<ERROR>> not implemented " << __FUNCDNAME__ << " in file " << __FILE__ \
<< ":" << __LINE__ << std::endl; \
......@@ -269,7 +269,7 @@ throw
#endif
// Mathematical definition not provided on the Window plateform
#ifdef WIN32
#ifdef _WIN32
#define M_PI 3.14159265
template<typename T> bool isnan(T x)
......@@ -278,7 +278,7 @@ template<typename T> bool isnan(T x)
}
#endif
#ifdef WIN32
#ifdef _WIN32
#define ALTA_DLL_EXPORT extern "C" __declspec(dllexport)
#else
#define ALTA_DLL_EXPORT extern "C"
......
......@@ -7,7 +7,7 @@
#include <QDir>
*/
#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
......@@ -19,7 +19,7 @@
//! specific type.
template<typename T> T open_library(const std::string& filename, const char* function)
{
#ifdef WIN32
#ifdef _WIN32
HINSTANCE handle = LoadLibraryA(filename.c_str());
if(handle != NULL)
{
......
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