Public feed #723149

Untitled

public text v1 · immutable
Raw Edit
·published 2007-10-02 15:36 UTC
rendered paste body
| /* Define ns_get16 to an innocuous variant, in case <limits.h> declares ns_get16.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define ns_get16 innocuous_ns_get16
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char ns_get16 (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef ns_get16
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char ns_get16 ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_ns_get16 || defined __stub___ns_get16
| choke me
| #endif
|
| int
| main ()
| {
| return ns_get16 ();
|   ;
|   return 0;
| }