summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/os_calls.c8
-rw-r--r--common/os_calls.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index cbd546c4..c276b4c0 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -60,7 +60,7 @@
#include <pthread.h>
#endif
-//#define MEMLEAK
+/*#define MEMLEAK*/
#if defined(_WIN32)
static CRITICAL_SECTION g_term_mutex;
@@ -976,6 +976,12 @@ int g_strcmp(char* c1, char* c2)
}
/*****************************************************************************/
+int g_strncmp(char* c1, char* c2, int len)
+{
+ return strncmp(c1, c2, len);
+}
+
+/*****************************************************************************/
long g_load_library(char* in)
{
#if defined(_WIN32)
diff --git a/common/os_calls.h b/common/os_calls.h
index e7c0df40..7bc6bd89 100644
--- a/common/os_calls.h
+++ b/common/os_calls.h
@@ -83,6 +83,7 @@ char* g_strncpy(char* dest, char* src, int len);
char* g_strcat(char* dest, char* src);
char* g_strdup(char* in);
int g_strcmp(char* c1, char* c2);
+int g_strncmp(char* c1, char* c2, int len);
long g_load_library(char* in);
int g_free_library(long lib);
void* g_get_proc_address(long lib, char* name);