summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Antonio Cardoso <joao.antonio@expertisesolutions.com.br>2020-04-01 19:07:01 -0300
committerJoão Antônio Cardoso <joao.maker@gmail.com>2020-04-30 14:40:34 -0300
commitcf62ea7bab2e252d2cee5444f218ba56dfe3f380 (patch)
treef2844b87db0a4f4a12da13b39b511dc07627fc86
parentea6d1c40eef1f5b02b3654ec6413d33106e3c078 (diff)
alternative: using definitions to map ucrt
-rw-r--r--src/lib/evil/unposix/strings.h36
1 files changed, 4 insertions, 32 deletions
diff --git a/src/lib/evil/unposix/strings.h b/src/lib/evil/unposix/strings.h
index 8209743983..d5ad3f4ba6 100644
--- a/src/lib/evil/unposix/strings.h
+++ b/src/lib/evil/unposix/strings.h
@@ -1,37 +1,9 @@
1#ifndef UNPOSIX_STRINGS_H 1#ifndef UNPOSIX_STRINGS_H
2#define UNPOSIX_STRINGS_H 2#define UNPOSIX_STRINGS_H
3 3
4#include <sys/types.h> 4#define strncasecmp _strnicmp
5#include <locale.h> 5#define strcasecmp _stricmp
6 6#define strncasecmp_l _strnicmp_l
7inline int ffs(int i) 7#define strcasecmp_l _strncmp_l
8{
9 #warning ffs is not implemented.
10 return 0;
11}
12
13inline int strcasecmp(const char* s1, const char* s2)
14{
15 #warning strcasecmp is not implemented.
16 return 0;
17}
18
19inline int strcasecmp_l(const char* s1, const char* s2, locale_t locale)
20{
21 #warning strcasecmp_l is not implemented.
22 return 0;
23}
24
25inline int strncasecmp(const char* s1, const char* s2, size_t size)
26{
27 #warning strncasecmp is not implemented.
28 return 0;
29}
30
31inline int strncasecmp_l(const char* s1, const char* s2, size_t size, locale_t locale)
32{
33 #warning strncasecmp_l is not implemented.
34 return 0;
35}
36 8
37#endif 9#endif