Changeset 539


Ignore:
Timestamp:
Oct 12, 2005 1:42:11 PM (14 years ago)
Author:
andreasw
Message:

Corrected includes for ctype and stdio (the old OLD_C_HEADER was used).
(this bug was reported by Steven Dirkse)

Location:
branches/dev/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Common/IpRegOptions.cpp

    r510 r539  
    1010#include <set>
    1111
    12 #ifdef OLD_C_HEADERS
    13 # include <ctype.h>
     12#ifdef HAVE_CCTYPE
     13# include <cctype>
    1414#else
    15 # include <cctype>
     15# ifdef HAVE_CTYPE_H
     16#  include <ctype.h>
     17# else
     18#  error "don't have header file for ctype"
     19# endif
    1620#endif
    1721
  • branches/dev/Common/IpRegOptions.hpp

    r501 r539  
    1616#include <map>
    1717
    18 #ifdef OLD_C_HEADERS
    19 # include <stdio.h>
     18#ifdef HAVE_CSTDIO
     19# include <cstdio>
    2020#else
    21 # include <cstdio>
     21# ifdef HAVE_STDIO_H
     22#  include <stdio.h>
     23# else
     24#  error "don't have header file for stdio"
     25# endif
    2226#endif
    2327
Note: See TracChangeset for help on using the changeset viewer.