Visualage C++ V4.0 updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-12-14 23:32:53 +00:00
parent aaf6c39ae6
commit 9dea36ef6d
18 changed files with 122 additions and 49 deletions

View File

@@ -13,6 +13,9 @@
#define _WX_EXPRH__
#include <math.h>
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
# undef __BSEXCPT__
#endif
#include <stdlib.h>
#ifdef ____HPUX__

View File

@@ -20,6 +20,9 @@
#include "wx/wxchar.h"
#include "wx/buffer.h"
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
# undef __BSEXCPT__
#endif
#include <stdlib.h>
#if wxUSE_WCHAR_T

View File

@@ -38,7 +38,7 @@
// headers
// ----------------------------------------------------------------------------
#ifdef __WXMAC__
#if defined(__WXMAC__) || defined(__VISAGECPP__)
#include <ctype.h>
#endif
@@ -46,11 +46,20 @@
#include <std.h>
#endif
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#include <stdlib.h>
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
// problem in VACPP V4 with including stdlib.h multiple times
// strconv includes it anyway
# include <stdio.h>
# include <string.h>
# include <stdarg.h>
# include <limits.h>
#else
# include <string.h>
# include <stdio.h>
# include <stdarg.h>
# include <limits.h>
# include <stdlib.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h> // for strcasecmp()

View File

@@ -61,6 +61,44 @@
#define wxNO_TCHAR_STDIO
#define wxNO_TCHAR_STDLIB
#define wxNO_TCHAR_TIME
#define wxNO_TCHAR_LOCALE
//
// supplemental VA V4 defs so at least we know what these are
// just define to standard defs
//
// for wcslen
#include <wchar.h>
// locale.h functons -- not defined in tchar.h
#define wxSetlocale setlocale
// some stdio functions are defined others are not
// these are not
#define wxFgetchar fgetchar
#define wxFopen fopen
#define wxFputchar fputchar
#define wxFreopen freopen
#define wxGets gets
#define wxPerror perror
#define wxPuts puts
#define wxRemove remove
#define wxRename rename
#define wxTmpnam tmpnam
#define wxUngetc ungetc
#define wxVsscanf vsscanf
// stdlib not defined in VA V4
#if !wxUSE_UNICODE
# define wxAtof atof
#endif
#define wxAtoi atoi
#define wxAtol atol
#define wxGetenv getenv
#define wxSystem system
// time.h functions -- none defined in tchar.h
#define wxAsctime asctime
#define wxCtime ctime
#endif
#ifdef wxHAVE_TCHAR_FUNCTIONS
@@ -157,7 +195,7 @@ typedef _TUCHAR wxUChar;
# define wxVprintf _vtprintf
# define wxVsscanf _vstscanf
# define wxVsprintf _vstprintf
#elif defined(__VISAGECPP__)
#elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
// it has some stdio.h functions, apparently
# define wxFgetc _fgettc
# define wxFgets _fgetts
@@ -215,6 +253,8 @@ typedef _TUCHAR wxUChar;
# define wxUSE_WCHAR_T 0
# elif defined(__WATCOMC__)
# define wxUSE_WCHAR_T 0
# elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
# define wxUSE_WCHAR_T 1
# else
// add additional compiler checks if this fails
# define wxUSE_WCHAR_T 1