+2013-06-18 Earnie Boyd <earnie@users.sourceforge.net>
+
+ * include/io.h (_findfirst*, _findnext*): Remove the __NO_INLINE__
+ filter and change the signature to __CRT_MAYBE_INLINE.
+ * include/wchar.h (time_t): Remove definition.
+ * include/sys/types.h: Add comment for time_t indicating other files
+ where time_t is defined.
+
2013-06-17 Earnie Boyd <earnie@users.sourceforge.net>
* include/_mingw.h (__CRT_MAYBE_INLINE): When __NO_INLINE__ defined we
int __cdecl __MINGW_NOTHROW _findnext32i64(intptr_t, struct _finddata32i64_t*);
int __cdecl __MINGW_NOTHROW _findnext64i32(intptr_t, struct _finddata64i32_t*);
-#ifndef __NO_INLINE__
#include <string.h>
-__CRT_INLINE __cdecl __MINGW_NOTHROW intptr_t _findfirst32i64(const char* _filename, struct _finddata32i64_t* _fdata) {
+__CRT_MAYBE_INLINE __cdecl __MINGW_NOTHROW intptr_t _findfirst32i64(const char* _filename, struct _finddata32i64_t* _fdata) {
struct __finddata64_t fd;
intptr_t ret = _findfirst64(_filename, &fd);
if (ret == -1) {
return ret;
}
-__CRT_INLINE __cdecl __MINGW_NOTHROW intptr_t _findfirst64i32(const char* _filename, struct _finddata64i32_t* _fdata) {
+__CRT_MAYBE_INLINE __cdecl __MINGW_NOTHROW intptr_t _findfirst64i32(const char* _filename, struct _finddata64i32_t* _fdata) {
struct _finddata32_t fd;
intptr_t ret = _findfirst32(_filename, &fd);
if (ret == -1) {
return ret;
}
-__CRT_INLINE __cdecl __MINGW_NOTHROW intptr_t _findnext32i64(intptr_t _fp, struct _finddata32i64_t* _fdata) {
+__CRT_MAYBE_INLINE __cdecl __MINGW_NOTHROW intptr_t _findnext32i64(intptr_t _fp, struct _finddata32i64_t* _fdata) {
struct __finddata64_t fd;
int ret = _findnext64(_fp,&fd);
if (ret == -1) {
return ret;
}
-__CRT_INLINE __cdecl __MINGW_NOTHROW intptr_t _findnext64i32(intptr_t _fp, struct _finddata64i32_t* _fdata) {
+__CRT_MAYBE_INLINE __cdecl __MINGW_NOTHROW intptr_t _findnext64i32(intptr_t _fp, struct _finddata64i32_t* _fdata) {
struct _finddata32_t fd;
int ret = _findnext32(_fp, &fd);
if (ret == -1) {
strncpy(_fdata->name, fd.name, FILENAME_MAX);
return ret;
}
-#else /* def __NO_INLINE__ */
-#define _findfirst64i32 _findfirst64
-#define _findfirst32i64 _findfirst32
-#define _findnext64i32 _findnext64
-#define _findnext32i64 _findnext32
-#endif /* ndef __NO_INLINE__ */
#ifndef __NO_MINGW_LFS
__CRT_INLINE off64_t lseek64 (int, off64_t, int);
#ifndef RC_INVOKED
+/*
+ * A type for storing the current time and date. This is the number of
+ * seconds since midnight Jan 1, 1970.
+ * NOTE: This is also defined in time.h.
+ */
#ifndef _TIME32_T_DEFINED
typedef __int32 __time32_t;
#define _TIME32_T_DEFINED