Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / vorbis-tools / oggenc / platform.h
blobc2ab8190edf43cc183eabecb1fc04b5202c045c7
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 ""
24 #else /* Unix, mostly */
26 #define setbinmode(x) {}
27 #define DEFAULT_NAMEFMT_REMOVE "/"
28 #define DEFAULT_NAMEFMT_REPLACE ""
30 #endif
32 #ifdef _WIN32
34 extern FILE *oggenc_fopen(char *fn, char *mode, int isutf8);
35 extern void get_args_from_ucs16(int *argc, char ***argv);
37 #else
39 #define oggenc_fopen(x,y,z) fopen(x,y)
40 #define get_args_from_ucs16(x,y) { }
42 #endif
44 #endif /* __PLATFORM_H */