summaryrefslogtreecommitdiff
path: root/storage/connect/value.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2015-06-02 10:34:51 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2015-06-02 10:34:51 +0200
commite8ea671c2523f56fce0eacabbba05689aa4824f9 (patch)
treeaf7b056f4ecff525dd8b0fbaa978635269be0d2a /storage/connect/value.cpp
parent893631a8c188817e3294edc11de2087630dde801 (diff)
downloadmariadb-git-e8ea671c2523f56fce0eacabbba05689aa4824f9.tar.gz
Commit changes pulled from ob-10.0
Diffstat (limited to 'storage/connect/value.cpp')
-rw-r--r--storage/connect/value.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/storage/connect/value.cpp b/storage/connect/value.cpp
index 5a8b1de326a..03ec0eb8e40 100644
--- a/storage/connect/value.cpp
+++ b/storage/connect/value.cpp
@@ -30,11 +30,11 @@
#include "sql_class.h"
#include "sql_time.h"
-#if defined(WIN32)
+#if defined(__WIN__)
//#include <windows.h>
-#else // !WIN32
+#else // !__WIN__
#include <string.h>
-#endif // !WIN32
+#endif // !__WIN__
#include <math.h>
@@ -77,12 +77,12 @@ int DTVAL::Shift = 0;
/***********************************************************************/
bool PlugEvalLike(PGLOBAL, LPCSTR, LPCSTR, bool);
-#if !defined(WIN32)
+#if !defined(__WIN__)
extern "C" {
PSZ strupr(PSZ s);
PSZ strlwr(PSZ s);
}
-#endif // !WIN32
+#endif // !__WIN__
/***********************************************************************/
/* Get a long long number from its character representation. */
@@ -1618,10 +1618,10 @@ int TYPVAL<PSZ>::CompareValue(PVAL vp)
else
n = strcmp(Strp, vp->GetCharValue());
-#if defined(WIN32)
+#if defined(__WIN__)
if (n == _NLSCMPERROR)
return n; // Here we should raise an error
-#endif // WIN32
+#endif // __WIN__
return (n > 0) ? 1 : (n < 0) ? -1 : 0;
} // end of CompareValue