From 6b425dc4749fd3cc4dd22b4b66b5195fb210d5bd Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 5 Sep 2006 19:12:47 +0000 Subject: [PATCH] Rearranged definitions and header inclusions. Is safer so. --- trunk/test/libburner.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/trunk/test/libburner.c b/trunk/test/libburner.c index 937fce45..7fd70bf3 100644 --- a/trunk/test/libburner.c +++ b/trunk/test/libburner.c @@ -3,8 +3,6 @@ /* Copyright (C) 2005 - 2006 Thomas Schmitt */ /* 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 /** 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 is intended for Linux systems with kernel 2.4 or 2.6 for now */ #include @@ -54,15 +63,6 @@ #include #include -/* 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.