changeset 5660:e4d9a872998f

replaced incorrect macro WIN32 by _WIN32
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 23 Jun 2024 10:24:31 +0200
parents a6f121707dfe
children d77292629430
files OrthancFramework/Sources/Toolbox.cpp OrthancServer/Plugins/Engine/PluginsManager.cpp OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/Toolbox.cpp	Thu Jun 20 21:53:16 2024 +0200
+++ b/OrthancFramework/Sources/Toolbox.cpp	Sun Jun 23 10:24:31 2024 +0200
@@ -1885,7 +1885,7 @@
 
   std::string Toolbox::GenerateUuid()
   {
-#ifdef WIN32
+#ifdef _WIN32
     UUID uuid;
     UuidCreate ( &uuid );
 
--- a/OrthancServer/Plugins/Engine/PluginsManager.cpp	Thu Jun 20 21:53:16 2024 +0200
+++ b/OrthancServer/Plugins/Engine/PluginsManager.cpp	Sun Jun 23 10:24:31 2024 +0200
@@ -37,7 +37,7 @@
 #include <memory>
 #include <boost/filesystem.hpp>
 
-#ifdef WIN32
+#ifdef _WIN32
 #define PLUGIN_EXTENSION ".dll"
 #elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__FreeBSD__) || defined(__OpenBSD__)
 #define PLUGIN_EXTENSION ".so"
--- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Thu Jun 20 21:53:16 2024 +0200
+++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Sun Jun 23 10:24:31 2024 +0200
@@ -111,7 +111,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 #  define ORTHANC_PLUGINS_API __declspec(dllexport)
 #elif __GNUC__ >= 4
 #  define ORTHANC_PLUGINS_API __attribute__ ((visibility ("default")))