Changeset 2374


Ignore:
Timestamp:
2001-05-07T16:44:00+12:00 (23 years ago)
Author:
jrm21
Message:

added a check for STDC compiler macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/lib/non_ansi.h

    r855 r2374  
    1 extern "C" int fileno(FILE *);
    2 extern "C" int ftruncate(int, long);
     1#if !defined(_NON_ANSI_H)
     2#define _NON_ANSI_H 1
    33
    4 extern "C" int pclose(FILE *);
    5 extern "C" FILE *popen(const char *command, const char *type);
     4#include "config.h"
     5# if !defined(__STDC__)
    66
    7 extern "C" int getpagesize();
     7#include <stdlib.h>  /* for FILE def */
     8#if defined (__cplusplus)
     9extern "C" {
     10#endif
    811
    9 extern "C" int strcasecmp(const char *, const char *);
     12int fileno(FILE *);
     13int ftruncate(int, long);
     14int pclose(FILE *);
     15FILE *popen(const char *command, const char *type);
     16int getpagesize();
     17int strcasecmp(const char *, const char *);
     18
     19#if defined (__cplusplus)
     20}
     21#endif
     22
     23#endif /* !defined STDC, ... */
     24#endif
Note: See TracChangeset for help on using the changeset viewer.