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)
vb@0
     1
#pragma once
vb@0
     2
vb@0
     3
// Windows platform specifica
vb@0
     4
vb@0
     5
#define RTLD_LAZY 1
vb@0
     6
#ifndef strdup
vb@0
     7
#define strdup _strdup
vb@0
     8
#endif
vb@0
     9
#ifndef snprintf
vb@0
    10
#define snprintf _snprintf
vb@0
    11
#endif
vb@24
    12
#pragma warning(disable : 4996)
vb@0
    13
vb@0
    14
#ifdef __cplusplus
vb@0
    15
extern "C" {
vb@0
    16
#endif
vb@0
    17
vb@0
    18
void *dlopen(const char *filename, int flag);
vb@0
    19
int dlclose(void *handle);
vb@0
    20
void *dlsym(void *handle, const char *symbol);
vb@0
    21
vb@82
    22
#ifndef strtok_r
vb@82
    23
#define strtok_r(A, B, C) strtok_s((A), (B), (C))
vb@82
    24
#endif
vb@85
    25
#ifndef strncasecmp
vb@85
    26
#define strncasecmp(A, B, C) _strnicmp((A), (B), (C))
vb@85
    27
#endif
vb@82
    28
char *strndup(const char *s1, size_t n);
vb@80
    29
vb@0
    30
const char *windoze_local_db(void);
vb@0
    31
const char *windoze_system_db(void);
vb@0
    32
const char *gpg_conf(void);
vb@0
    33
vb@54
    34
long random(void);
vb@54
    35
vb@0
    36
#ifdef __cplusplus
vb@0
    37
}
vb@0
    38
#endif