xref: /dragonfly/contrib/xz/src/xz/private.h (revision 3170ffd7)
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       private.h
4 /// \brief      Common includes, definions, and prototypes
5 //
6 //  Author:     Lasse Collin
7 //
8 //  This file has been put into the public domain.
9 //  You can do whatever you want with this file.
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12 
13 #include "sysdefs.h"
14 #include "mythread.h"
15 #include "lzma.h"
16 
17 #include <sys/types.h>
18 #include <sys/stat.h>
19 #include <errno.h>
20 #include <signal.h>
21 #include <locale.h>
22 #include <stdio.h>
23 #include <unistd.h>
24 
25 #include "tuklib_gettext.h"
26 #include "tuklib_progname.h"
27 #include "tuklib_exit.h"
28 #include "tuklib_mbstr.h"
29 
30 #if defined(_WIN32) && !defined(__CYGWIN__)
31 #	define WIN32_LEAN_AND_MEAN
32 #	include <windows.h>
33 #endif
34 
35 #ifndef STDIN_FILENO
36 #	define STDIN_FILENO (fileno(stdin))
37 #endif
38 
39 #ifndef STDOUT_FILENO
40 #	define STDOUT_FILENO (fileno(stdout))
41 #endif
42 
43 #ifndef STDERR_FILENO
44 #	define STDERR_FILENO (fileno(stderr))
45 #endif
46 
47 #include "main.h"
48 #include "coder.h"
49 #include "message.h"
50 #include "args.h"
51 #include "hardware.h"
52 #include "file_io.h"
53 #include "options.h"
54 #include "signals.h"
55 #include "suffix.h"
56 #include "util.h"
57 #include "list.h"
58