]> icculus.org git repositories - icculus/xz.git/blob - src/xz/private.h
Move some LZMA2 constants to lzma2_encoder.h so that they
[icculus/xz.git] / src / xz / private.h
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       private.h
4 /// \brief      Common includes, definions, and prototypes
5 //
6 //  Copyright (C) 2007 Lasse Collin
7 //
8 //  This program is free software; you can redistribute it and/or
9 //  modify it under the terms of the GNU Lesser General Public
10 //  License as published by the Free Software Foundation; either
11 //  version 2.1 of the License, or (at your option) any later version.
12 //
13 //  This program is distributed in the hope that it will be useful,
14 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 //  Lesser General Public License for more details.
17 //
18 ///////////////////////////////////////////////////////////////////////////////
19
20 #ifndef PRIVATE_H
21 #define PRIVATE_H
22
23 #include "sysdefs.h"
24 #include "mythread.h"
25
26 #include <sys/types.h>
27 #include <sys/stat.h>
28 #include <errno.h>
29 #include <signal.h>
30 #include <locale.h>
31 #include <stdio.h>
32 #include <unistd.h>
33
34 #ifdef ENABLE_NLS
35 #       include <libintl.h>
36 #       define _(msgid) gettext(msgid)
37 #       define N_(msgid1, msgid2, n) ngettext(msgid1, msgid2, n)
38 #else
39 #       define _(msgid) (msgid)
40 #       define N_(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2))
41 #endif
42
43 #include "main.h"
44 #include "process.h"
45 #include "message.h"
46 #include "args.h"
47 #include "hardware.h"
48 #include "io.h"
49 #include "options.h"
50 #include "suffix.h"
51 #include "util.h"
52
53 #endif