projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53dce3a
)
common: fix compatibility issue for MSVC.
author
Hermet Park
<chuneon.park@samsung.com>
Wed, 23 Jun 2021 05:50:46 +0000
(14:50 +0900)
committer
JunsuChoi
<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
patch
|
blob
|
history
diff --git
a/src/lib/tvgCommon.h
b/src/lib/tvgCommon.h
index
52998b8
..
28dbeac
100644
(file)
--- a/
src/lib/tvgCommon.h
+++ b/
src/lib/tvgCommon.h
@@
-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