X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=gcc-compat.h;h=2ead2e7404f82ae5cddac2c1a40881f2a1c8b2e2;hp=4ba96ae16da204b760219bded23e55c38053976c;hb=6744ce67f91c410f69de0763fb6faa01a8a53b28;hpb=2842e5142322dcc2e42172c28fc041dcc5673dd5 diff --git a/gcc-compat.h b/gcc-compat.h index 4ba96ae..2ead2e7 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Andre Noll + * Copyright (C) 2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -20,7 +20,7 @@ * If not all the functions (handlers) use all arguments, gcc will print * a warning. * - * Marking those few unused function parameters with \p __a_unused to supress + * Marking those few unused function parameters with \p __a_unused to suppress * the gcc warnings allows us to get a clean build _and_ the benefit of the * warning in other cases where we do care about unused parameters. */ @@ -34,7 +34,7 @@ /** * Let gcc check format strings also for our own functions. * - * Functions marked with \p __printf will be cheked by gcc for format string + * Functions marked with \p __printf will be checked by gcc for format string * bugs, just like printf() if -Wformat-security is enabled. * * \param p The number of the "format string" parameter. @@ -72,7 +72,13 @@ */ #define _static_inline_ static inline +/** + * On systems whihout large file support (BSD) there is no * struct stat64 and + * no lstat64(). + */ #ifndef HAVE_STAT64 -#define stat64 stat -#define lstat64 lstat + /** Use the usual stat structure. */ + #define stat64 stat + /** Use the usual lstat() function. */ + #define lstat64 lstat #endif