common: fix compatibility issue for MSVC.
authorHermet Park <chuneon.park@samsung.com>
Wed, 23 Jun 2021 05:50:46 +0000 (14:50 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jun 2021 00:26:30 +0000 (09:26 +0900)
strcasecmp() is not supported by MSVC

We can replace it with _stricmp()

thanks @fire for pointing out this.

src/lib/tvgCommon.h

index 52998b8..28dbeac 100644 (file)
@@ -31,10 +31,14 @@ using namespace tvg;
 #define FILL_ID_LINEAR 0
 #define FILL_ID_RADIAL 1
 
+
+//for MSVC Compat
 #ifdef _MSC_VER
     #define TVG_UNUSED
+    #define strncasecmp _strnicmp
+    #define strcasecmp _stricmp
 #else
     #define TVG_UNUSED __attribute__ ((__unused__))
 #endif
 
-#endif //_TVG_COMMON_H_
+#endif //_TVG_COMMON_H_
\ No newline at end of file