Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMircea Gherzan2020-11-19 16:00:42 +0000
committerEugene Tarassov2020-11-24 21:45:28 +0000
commit00677cbe48443d748e4abbe3e3c08bf4a8adfe53 (patch)
treef40ec15dee4e61f27cbdd2f1ee180a5648386c69 /agent/tcf/framework
parent5aa3cebbdbf837cfc97a507409c3c2ef8f0362d4 (diff)
downloadorg.eclipse.tcf.agent-00677cbe48443d748e4abbe3e3c08bf4a8adfe53.tar.gz
org.eclipse.tcf.agent-00677cbe48443d748e4abbe3e3c08bf4a8adfe53.tar.xz
org.eclipse.tcf.agent-00677cbe48443d748e4abbe3e3c08bf4a8adfe53.zip
TCF Agent: fix the build with Clang on Windows
* Avoid a macro re-definition. * Use the recommended string functions instead of the deprecated aliases. From the Clang User Manual: "For compatibility with existing code that compiles with MSVC, clang defines the _MSC_VER and _MSC_FULL_VER macros. These default to the values of 1800 and 180000000 respectively, making clang look like an early release of Visual C++ 2013." Change-Id: I1eb815e9721aa103e383c95827af24cd96b90b9b Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
Diffstat (limited to 'agent/tcf/framework')
-rw-r--r--agent/tcf/framework/mdep.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/agent/tcf/framework/mdep.h b/agent/tcf/framework/mdep.h
index ec7a0f09..f71751bb 100644
--- a/agent/tcf/framework/mdep.h
+++ b/agent/tcf/framework/mdep.h
@@ -148,10 +148,12 @@ struct timespec {
#if defined(_M_IX86)
# define __i386__
#elif defined(_M_AMD64)
-# define __x86_64__
+# ifndef __x86_64__
+# define __x86_64__
+# endif
#endif
-#define strcasecmp(x,y) stricmp(x,y)
-#define strncasecmp(x,y,z) strnicmp(x,y,z)
+#define strcasecmp(x,y) _stricmp(x,y)
+#define strncasecmp(x,y,z) _strnicmp(x,y,z)
#if defined(USE_WINDOWS_SCHED_H)
# include <windows/sched.h>
#else

Back to the top