From: solar Date: Tue, 9 May 2006 05:01:50 +0000 (+0000) Subject: Kludge to avoid unistd.h redefinition warnings. X-Git-Tag: v0.5~202 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=05c4ae55c5ed3a2a4e877a723e58e7ffc92110d4 Kludge to avoid unistd.h redefinition warnings. --- 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()'"