aboutsummaryrefslogtreecommitdiff
path: root/src/lzma/private.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-11-19 20:46:52 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-11-19 20:46:52 +0200
commite114502b2bc371e4a45449832cb69be036360722 (patch)
tree449c41d0408f99926de202611091747f1fbe2f85 /src/lzma/private.h
parentFixed the test that should have been fixed as part (diff)
downloadxz-e114502b2bc371e4a45449832cb69be036360722.tar.xz
Oh well, big messy commit again. Some highlights:
- Updated to the latest, probably final file format version. - Command line tool reworked to not use threads anymore. Threading will probably go into liblzma anyway. - Memory usage limit is now about 30 % for uncompression and about 90 % for compression. - Progress indicator with --verbose - Simplified --help and full --long-help - Upgraded to the last LGPLv2.1+ getopt_long from gnulib. - Some bug fixes
Diffstat (limited to 'src/lzma/private.h')
-rw-r--r--src/lzma/private.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/lzma/private.h b/src/lzma/private.h
index f6a75645..b463a08e 100644
--- a/src/lzma/private.h
+++ b/src/lzma/private.h
@@ -22,32 +22,30 @@
#include "sysdefs.h"
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#else
-extern int errno;
-#endif
-
+#include <sys/types.h>
#include <sys/stat.h>
+#include <errno.h>
#include <signal.h>
-#include <pthread.h>
#include <locale.h>
#include <stdio.h>
-#include <fcntl.h>
#include <unistd.h>
-#include "gettext.h"
-#define _(msgid) gettext(msgid)
-#define N_(msgid1, msgid2, n) ngettext(msgid1, msgid2, n)
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(msgid) gettext(msgid)
+# define N_(msgid1, msgid2, n) ngettext(msgid1, msgid2, n)
+#else
+# define _(msgid) (msgid)
+# define N_(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2))
+#endif
-#include "alloc.h"
+#include "main.h"
+#include "process.h"
+#include "message.h"
#include "args.h"
-#include "error.h"
#include "hardware.h"
-#include "help.h"
#include "io.h"
#include "options.h"
-#include "process.h"
#include "suffix.h"
#include "util.h"