changeset 333:fad7c6156923

fix pragma warning for msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 11 Aug 2021 08:00:46 +0200
parents 2592c0e9b724
children 75ff5ce4a995
files Odbc/Plugins/IndexPlugin.cpp Odbc/UnitTests/UnitTestsMain.cpp
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Odbc/Plugins/IndexPlugin.cpp	Wed Aug 11 07:45:54 2021 +0200
+++ b/Odbc/Plugins/IndexPlugin.cpp	Wed Aug 11 08:00:46 2021 +0200
@@ -29,7 +29,11 @@
 
 
 #if defined(_WIN32)
-#  warning Strings have not been tested on Windows (UTF-16 issues ahead)!
+#  ifdef _MSC_VER
+#    pragma message("Warning: Strings have not been tested on Windows (UTF-16 issues ahead)!")
+#  else
+#    warning Strings have not been tested on Windows (UTF-16 issues ahead)!
+#  endif
 #  include <windows.h>
 #else
 #  include <ltdl.h>
--- a/Odbc/UnitTests/UnitTestsMain.cpp	Wed Aug 11 07:45:54 2021 +0200
+++ b/Odbc/UnitTests/UnitTestsMain.cpp	Wed Aug 11 08:00:46 2021 +0200
@@ -30,7 +30,6 @@
 
 
 #if defined(_WIN32)
-#  warning Strings have not been tested on Windows (UTF16 issues ahead)!
 #  include <windows.h>
 #else
 #  include <ltdl.h>