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