+2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/stdlib.h: Guard non-ISO functions with
+ !__STRICT_ANSI__, throughout.
+
2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
* include/io.h (_fileno): Remove prototype.
extern "C" {
#endif
+#if !defined (__STRICT_ANSI__)
+
/*
* This seems like a convenient place to declare these variables, which
* give programs using WinMain (or main for that matter) access to main-ish
#endif /* __DECLSPEC_SUPPORTED */
#endif /* __MSVCRT */
-
+#endif /* __STRICT_ANSI__ */
/*
* Also defined in ctype.h.
*/
_CRTIMP int* __cdecl __doserrno(void);
#define _doserrno (*__doserrno())
+#if !defined (__STRICT_ANSI__)
/*
* Use environ from the DLL, not as a global.
*/
/*
* OS version and such constants.
*/
-#ifndef __STRICT_ANSI__
#ifdef __MSVCRT__
/* msvcrtxx.dll */
_CRTIMP double __cdecl atof (const char*);
_CRTIMP int __cdecl atoi (const char*);
_CRTIMP long __cdecl atol (const char*);
+#if !defined (__STRICT_ANSI__)
_CRTIMP int __cdecl _wtoi (const wchar_t *);
_CRTIMP long __cdecl _wtol (const wchar_t *);
-
+#endif
_CRTIMP double __cdecl strtod (const char*, char**);
#if !defined __NO_ISOCEXT /* extern stub in static libmingwex.a */
__CRT_INLINE float __cdecl strtof (const char *nptr, char **endptr)
_CRTIMP div_t __cdecl div (int, int);
_CRTIMP ldiv_t __cdecl ldiv (long, long);
-#ifndef __STRICT_ANSI__
+#if !defined (__STRICT_ANSI__)
/*
* NOTE: Officially the three following functions are obsolete. The Win32 API