]> icculus.org git repositories - icculus/xz.git/blob - src/xz/private.h
Put the interesting parts of XZ Utils into the public domain.
[icculus/xz.git] / src / xz / private.h
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 #ifdef ENABLE_NLS
26 #       include <libintl.h>
27 #       define _(msgid) gettext(msgid)
28 #       define N_(msgid1, msgid2, n) ngettext(msgid1, msgid2, n)
29 #else
30 #       define _(msgid) (msgid)
31 #       define N_(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2))
32 #endif
33
34 #ifndef STDIN_FILENO
35 #       define STDIN_FILENO (fileno(stdin))
36 #endif
37
38 #ifndef STDOUT_FILENO
39 #       define STDOUT_FILENO (fileno(stdout))
40 #endif
41
42 #ifndef STDERR_FILENO
43 #       define STDERR_FILENO (fileno(stderr))
44 #endif
45
46 #include "main.h"
47 #include "process.h"
48 #include "message.h"
49 #include "args.h"
50 #include "hardware.h"
51 #include "io.h"
52 #include "options.h"
53 #include "signals.h"
54 #include "suffix.h"
55 #include "util.h"