提交 67048e6b 编写于 作者: A alanb

7076215: (jli) jdk/src/share/bin/jli_util.h should include function prototypes for str functions

Reviewed-by: alanb
Contributed-by: neil.richards@ngmr.net
上级 7a2236c2
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#define _JLI_UTIL_H #define _JLI_UTIL_H
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <jni.h> #include <jni.h>
void *JLI_MemAlloc(size_t size); void *JLI_MemAlloc(size_t size);
...@@ -58,6 +60,7 @@ int JLI_StrCCmp(const char *s1, const char* s2); ...@@ -58,6 +60,7 @@ int JLI_StrCCmp(const char *s1, const char* s2);
#define JLI_Snprintf _snprintf #define JLI_Snprintf _snprintf
#else #else
#include <unistd.h> #include <unistd.h>
#include <strings.h>
#define JLI_StrCaseCmp(p1, p2) strcasecmp((p1), (p2)) #define JLI_StrCaseCmp(p1, p2) strcasecmp((p1), (p2))
#define JLI_StrNCaseCmp(p1, p2, p3) strncasecmp((p1), (p2), (p3)) #define JLI_StrNCaseCmp(p1, p2, p3) strncasecmp((p1), (p2), (p3))
#define JLI_Snprintf snprintf #define JLI_Snprintf snprintf
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册