Recognizes if input is ogg or not.
[xiph.git] / vorbis-tools / oggenc / platform.h
blobab7f13c9ae979ed03a38563a9b028e82cdaf4a53
1 #ifndef __PLATFORM_H
2 #define __PLATFORM_H
4 #include <stdio.h>
6 #ifdef HAVE_ALLOCA_H
7 #include <alloca.h>
8 #endif
10 #ifdef __OS2__
11 #define INCL_DOS
12 #define INCL_NOPMAPI
13 #include <os2.h>
14 #endif
16 #if defined(_WIN32) || defined(__OS2__)
17 #include <malloc.h>
19 void setbinmode(FILE *);
21 #define DEFAULT_NAMEFMT_REMOVE "/\\:<>|"
22 #define DEFAULT_NAMEFMT_REPLACE NULL
24 #else /* Unix, mostly */
26 #define setbinmode(x) {}
27 #define DEFAULT_NAMEFMT_REMOVE "/"
28 #define DEFAULT_NAMEFMT_REPLACE NULL
30 #endif
32 #endif /* __PLATFORM_H */