Debian Codegraph @

texk/dviljk/win32/mktexlib.h

raw
1 #ifndef _MKTEXLIB_H_
2 #define _MKTEXLIB_H_
3
4 #if defined(WIN32)
5 # ifdef MKTEX_DLL
6 # ifdef MAKE_MKTEX_DLL
7 # define MKTEXDLL __declspec( dllexport)
8 # else
9 # define MKTEXDLL __declspec( dllimport)
10 # endif
11 # else
12 # define MKTEXDLL
13 # endif
14 #else /* ! WIN32 */
15 # define MKTEXDLL
16 # define __cdecl
17 #endif
18
19 #include <assert.h>
20 #ifdef _WIN32
21 #include <direct.h>
22 #else
23 #include <unistd.h>
24 #include <signal.h>
25 #endif
26 #include <stdio.h>
27 #include <signal.h>
28 #include <errno.h>
29 #include <time.h>
30 #include <sys/stat.h>
31
32 #include <kpathsea/config.h>
33 #include <kpathsea/kpathsea.h>
34 #include <kpathsea/version.h>
35
36 #ifndef _WIN32
37 #include <sys/param.h>
38 #endif
39
40 #ifdef WIN32
41 # ifdef mkdir
42 # undef mkdir
43 # endif
44 # define mkdir(p,m) _mkdir(p)
45 #else
46 //# define FS_CASE_SENSITIVE _FILESYS_CASE_SENSITIVE
47 typedef unsigned int DWORD;
48 #endif
49
50 /* gsftopk defines KPSE_LAST_DEBUG+2, so avoid clashes */
51 #define MKTEX_DEBUG (KPSE_LAST_DEBUG + 3)
52 #define MKTEX_FINE_DEBUG (KPSE_LAST_DEBUG + 4)
53
54
55 #define LAST_CHAR(s) (*((s)+strlen(s)-1))
56
57 extern MKTEXDLL const_string mktex_version_string;
58
59 #endif /* _MKTEXLIB_H_ */