src/platform_windows.h
author vb
Tue, 03 Mar 2015 11:44:59 +0100
changeset 85 6fd10806c186
parent 82 d0ad5655688a
child 86 0e08645f7230
permissions -rw-r--r--
strncasecmp(3)
     1 #pragma once
     2 
     3 // Windows platform specifica
     4 
     5 #define RTLD_LAZY 1
     6 #ifndef strdup
     7 #define strdup _strdup
     8 #endif
     9 #ifndef snprintf
    10 #define snprintf _snprintf
    11 #endif
    12 #pragma warning(disable : 4996)
    13 
    14 #ifdef __cplusplus
    15 extern "C" {
    16 #endif
    17 
    18 void *dlopen(const char *filename, int flag);
    19 int dlclose(void *handle);
    20 void *dlsym(void *handle, const char *symbol);
    21 
    22 #ifndef strtok_r
    23 #define strtok_r(A, B, C) strtok_s((A), (B), (C))
    24 #endif
    25 #ifndef strncasecmp
    26 #define strncasecmp(A, B, C) _strnicmp((A), (B), (C))
    27 #endif
    28 char *strndup(const char *s1, size_t n);
    29 
    30 const char *windoze_local_db(void);
    31 const char *windoze_system_db(void);
    32 const char *gpg_conf(void);
    33 
    34 long random(void);
    35 
    36 #ifdef __cplusplus
    37 }
    38 #endif