]> 4ch.mooo.com Git - 16.git/blob - src/lib/doslib/ext/vorbtool/platform.h
wwww
[16.git] / src / lib / doslib / ext / vorbtool / platform.h
1 #ifndef __PLATFORM_H
2 #define __PLATFORM_H
3
4 #include <stdio.h>
5
6 #ifdef HAVE_ALLOCA_H
7 #include <alloca.h>
8 #endif
9
10 #ifdef __OS2__
11 #define INCL_DOS
12 #define INCL_NOPMAPI
13 #include <os2.h>
14 #endif
15
16 #if defined(_WIN32) || defined(__OS2__)
17 #include <malloc.h>
18
19 void setbinmode(FILE *);
20
21 #define DEFAULT_NAMEFMT_REMOVE "/\\:<>|"
22 #define DEFAULT_NAMEFMT_REPLACE ""
23
24 #else /* Unix, mostly */
25
26 #define setbinmode(x) {}
27 #define DEFAULT_NAMEFMT_REMOVE "/"
28 #define DEFAULT_NAMEFMT_REPLACE ""
29
30 #endif
31
32 #ifdef _WIN32
33
34 extern FILE *oggenc_fopen(char *fn, char *mode, int isutf8);
35 extern void get_args_from_ucs16(int *argc, char ***argv);
36
37 #else
38
39 #define oggenc_fopen(x,y,z) fopen(x,y)
40 #define get_args_from_ucs16(x,y) { }
41
42 #endif
43
44 #endif /* __PLATFORM_H */