#ifndef __PLATFORM_H #define __PLATFORM_H #include #ifdef HAVE_ALLOCA_H #include #endif #ifdef __OS2__ #define INCL_DOS #define INCL_NOPMAPI #include #endif #if defined(_WIN32) || defined(__OS2__) #include void setbinmode(FILE *); #define DEFAULT_NAMEFMT_REMOVE "/\\:<>|" #define DEFAULT_NAMEFMT_REPLACE NULL #else /* Unix, mostly */ #define setbinmode(x) {} #define DEFAULT_NAMEFMT_REMOVE "/" #define DEFAULT_NAMEFMT_REPLACE NULL #endif #ifdef _WIN32 extern FILE *oggenc_fopen(char *fn, char *mode, int isutf8); extern void get_args_from_ucs16(int *argc, char ***argv); #else #define oggenc_fopen(x,y,z) fopen(x,y) #define get_args_from_ucs16(x,y) { } #endif #endif /* __PLATFORM_H */