Rearranged definitions and header inclusions. Is safer so.

This commit is contained in:
Thomas Schmitt 2006-09-05 19:12:47 +00:00
parent a9949d5e36
commit c2c9f4d77f
1 changed files with 11 additions and 11 deletions

View File

@ -3,8 +3,6 @@
/* Copyright (C) 2005 - 2006 Thomas Schmitt <scdbackup@gmx.net> */
/* Provided under GPL, see also "License and copyright aspects" at file end */
/** See this for the decisive API specs . libburn.h is The Original */
#include <libburn/libburn.h>
/** IMPORTANT: By default this program tries to make a simulated burn
on the CD recorder. Some obey, some do not.
@ -43,6 +41,17 @@
*/
/* We shall prepare for times when more than 2 GB of data are to be handled.
This gives POSIX-ly 64 bit off_t */
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE 1
#endif
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
/** See this for the decisive API specs . libburn.h is The Original */
#include <libburn/libburn.h>
/* libburn is intended for Linux systems with kernel 2.4 or 2.6 for now */
#include <stdio.h>
@ -54,15 +63,6 @@
#include <time.h>
#include <errno.h>
/* We shall prepare for times when more than 2 GB of data are to be handled.
This gives POSIX-ly 64 bit off_t */
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE 1
#endif
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
/** For simplicity i use global variables to represent the drives.
Drives are systemwide global, so we do not give away much of good style.