Changeset 2094


Ignore:
Timestamp:
Jun 27, 2005, 3:32:17 PM (20 years ago)
Author:
bird
Message:

We now've got getc and putc like good Ansi C citizens.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/libstdc++-v3/config/os/os2emx/os_defines.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2093 r2094  
    3232#define _GLIBCPP_OS_DEFINES 1
    3333
    34 /* Kind of a kludge: define our own getc and putc instead of those defined
    35    in stdio.h (libstdc++ does not permit them to be macros because they are
    36    required to be in the :: namespace */
    37 #include <stdio.h>
    38 #undef getc
    39 #undef putc
    40 
    41 static inline int getc (FILE *s)
    42 {
    43 #if defined (__MT__)
    44   return fgetc (s);
    45 #else
    46   return _getc_inline (s);
    47 #endif
    48 }
    49 
    50 static inline int putc (int c, FILE *s)
    51 {
    52 #if defined (__MT__)
    53   return fputc (c, s);
    54 #else
    55   return _putc_inline (c, s);
    56 #endif
    57 }
    58 
    5934/* System-specific #define, typedefs, corrections, etc, go here.  This
    6035   file will come before all others. */
Note: See TracChangeset for help on using the changeset viewer.