src/platform_windows.h
author vb
Mon, 01 Sep 2014 17:44:19 +0200
changeset 24 50887c6ab78f
parent 0 16f27efbef98
child 54 8f6b3a6b77a8
permissions -rw-r--r--
...
     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 const char *windoze_local_db(void);
    23 const char *windoze_system_db(void);
    24 const char *gpg_conf(void);
    25 
    26 #ifdef __cplusplus
    27 }
    28 #endif