From 5429add673831f073dddc27a8450a0edeb734a2e Mon Sep 17 00:00:00 2001 From: solar Date: Tue, 9 May 2006 05:01:50 +0000 Subject: [PATCH] Kludge to avoid unistd.h redefinition warnings. git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@191 546481bc-9713-0410-bf18-d3337bbf4a3e --- platform/example/functions/_PDCLIB/_Exit.c | 2 ++ platform/example/functions/_PDCLIB/remove.c | 2 ++ platform/example/functions/_PDCLIB/rename.c | 2 ++ platform/example/functions/stdlib/system.c | 2 ++ 4 files changed, 8 insertions(+) diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index 14bc183..e90dfc6 100644 --- a/platform/example/functions/_PDCLIB/_Exit.c +++ b/platform/example/functions/_PDCLIB/_Exit.c @@ -24,6 +24,8 @@ void _PDCLIB_Exit( int status ) #endif #ifdef TEST +/* TODO: Work around the following undef */ +#undef SEEK_SET #include <_PDCLIB_test.h> int main( void ) diff --git a/platform/example/functions/_PDCLIB/remove.c b/platform/example/functions/_PDCLIB/remove.c index 3396306..970db6a 100644 --- a/platform/example/functions/_PDCLIB/remove.c +++ b/platform/example/functions/_PDCLIB/remove.c @@ -33,6 +33,8 @@ int _PDCLIB_remove( const char * filename ) #endif #ifdef TEST +/* TODO: Work around the following undef */ +#undef SEEK_SET #include <_PDCLIB_test.h> int main( void ) diff --git a/platform/example/functions/_PDCLIB/rename.c b/platform/example/functions/_PDCLIB/rename.c index 90b2290..6b7ecf1 100644 --- a/platform/example/functions/_PDCLIB/rename.c +++ b/platform/example/functions/_PDCLIB/rename.c @@ -30,6 +30,8 @@ int _PDCLIB_rename( const char * old, const char * new ) #endif #ifdef TEST +/* TODO: Work around the following undef */ +#undef SEEK_SET #include <_PDCLIB_test.h> int main( void ) diff --git a/platform/example/functions/stdlib/system.c b/platform/example/functions/stdlib/system.c index 1c4589c..fb3c406 100644 --- a/platform/example/functions/stdlib/system.c +++ b/platform/example/functions/stdlib/system.c @@ -33,6 +33,8 @@ int system( const char * string ) } #ifdef TEST +/* TODO: Work around the following undef */ +#undef SEEK_SET #include <_PDCLIB_test.h> #define SHELLCOMMAND "echo 'SUCCESS testing system()'" -- 2.47.2