Harmonize source headers: C examples (Patch 4/5)

This commit is contained in:
R. Bernstein
2012-03-02 23:41:06 -05:00
parent a08e5931e0
commit c67e423704
23 changed files with 164 additions and 67 deletions

View File

@@ -26,8 +26,8 @@
/* config.h has to come first else _FILE_OFFSET_BITS are redefined in
say opensolaris. */
#ifdef HAVE_CONFIG_H
# include "config.h"
# define __CDIO_CONFIG_H__ 1
#include "config.h"
#define __CDIO_CONFIG_H__ 1
#endif
/* This is the UDF image. */
@@ -36,12 +36,9 @@
#define UDF_FILENAME "/COPYING"
#define LOCAL_FILENAME "copying"
#include <sys/types.h>
#include <cdio/cdio.h>
#include <cdio/udf.h>
#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
@@ -58,6 +55,9 @@
#include <sys/types.h>
#endif
#include <cdio/cdio.h>
#include <cdio/udf.h>
#define CEILING(x, y) ((x+(y-1))/y)
#define udf_PATH_DELIMITERS "/\\"