Mercurial > flash_v2
diff packages/io/wallclock/current/tests/wallclock2.cxx @ 130:eb9fd8c04db3 ecos-sw-2000-10-23
Merge from eCos master repository on 2000-10-23-17:01:37-BST
| author | jlarmour |
|---|---|
| date | Mon, 23 Oct 2000 17:10:57 +0000 |
| parents | 6ed91473a1cd |
| children | a9ac27ec7abc |
line wrap: on
line diff
--- a/packages/io/wallclock/current/tests/wallclock2.cxx +++ b/packages/io/wallclock/current/tests/wallclock2.cxx @@ -48,9 +48,19 @@ #ifdef CYGPKG_LIBC_TIME #include <pkgconf/libc_time.h> #endif +#ifdef CYGPKG_LIBC_STARTUP +#include <pkgconf/libc_startup.h> +#endif -#if defined(CYGSEM_LIBC_TIME_CLOCK_WORKING) +#if !defined(CYGSEM_LIBC_TIME_CLOCK_WORKING) +# define NA_MSG "Requires libc time functions" +#elif !defined(CYGPKG_LIBC_STARTUP) +# define NA_MSG "Requires libc startup package" +#elif !defined(CYGINT_LIBC_STARTUP_CONTEXT) +# define NA_MSG "Requires main to be invoked" +#endif +#ifndef NA_MSG #include <time.h> #include <cyg/io/wallclock.hxx> // The WallClock API @@ -97,10 +107,6 @@ main (void ) } #else -#define NA_MSG "Requires libc time functions" -#endif - -#ifdef NA_MSG externC void cyg_start( void )
