[libdvdnav-devel] Include config.h for all .c files
Marcel Mol
git at videolan.org
Sun Mar 2 11:59:10 CET 2014
libdvdread | branch: master | Marcel Mol <marcel at mesa.nl> | Fri Feb 28 22:59:17 2014 +0100| [563c79a604ea96ecf48dcbd0da618bfdf7d6fb90] | committer: Jean-Baptiste Kempf
Include config.h for all .c files
As many compile time defines are now in config.h it should be
included in all .c files at the top.
(this allows support for large DVDs (>2GB) again.)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=563c79a604ea96ecf48dcbd0da618bfdf7d6fb90
---
src/bitreader.c | 1 +
src/dvd_input.c | 2 +-
src/dvd_reader.c | 1 +
src/dvd_udf.c | 1 +
src/ifo_print.c | 1 +
src/md5.c | 2 +-
src/nav_print.c | 1 +
7 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/bitreader.c b/src/bitreader.c
index 9fa1b71..339ef3b 100644
--- a/src/bitreader.c
+++ b/src/bitreader.c
@@ -18,6 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/dvd_input.c b/src/dvd_input.c
index 1018758..d7e2252 100644
--- a/src/dvd_input.c
+++ b/src/dvd_input.c
@@ -19,12 +19,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h" /* Required for HAVE_DVDCSS_DVDCSS_H */
#include <stdio.h> /* fprintf */
#include <stdlib.h> /* free */
#include <fcntl.h> /* open */
#include <unistd.h> /* lseek */
-#include "config.h" /* Required for HAVE_DVDCSS_DVDCSS_H */
#include "dvdread/dvd_reader.h" /* DVD_VIDEO_LB_LEN */
#include "dvd_input.h"
diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index 07ac864..69c0011 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -20,6 +20,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include <sys/types.h> /* off_t */
#include <sys/stat.h> /* stat */
#include <sys/time.h> /* For the timing of dvdcss_title crack. */
diff --git a/src/dvd_udf.c b/src/dvd_udf.c
index a418ce5..dc5f9af 100644
--- a/src/dvd_udf.c
+++ b/src/dvd_udf.c
@@ -28,6 +28,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/ifo_print.c b/src/ifo_print.c
index fffa652..2a1cc8c 100644
--- a/src/ifo_print.c
+++ b/src/ifo_print.c
@@ -16,6 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/src/md5.c b/src/md5.c
index 59da6fe..9c5f50d 100644
--- a/src/md5.c
+++ b/src/md5.c
@@ -20,6 +20,7 @@
/* Written by Ulrich Drepper <drepper at gnu.ai.mit.edu>, 1995. */
+#include "config.h"
#include <sys/types.h>
#include <stdlib.h>
@@ -28,7 +29,6 @@
#include "md5.h"
/* #include "unlocked-io.h" */
-#include "config.h"
#ifdef WORDS_BIGENDIAN
# define SWAP(n) \
diff --git a/src/nav_print.c b/src/nav_print.c
index 2d9e6b2..28e4abd 100644
--- a/src/nav_print.c
+++ b/src/nav_print.c
@@ -23,6 +23,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include <stdio.h>
#include <inttypes.h>
More information about the libdvdnav-devel
mailing list