wine/include/msvcrt/stddef.h

39 lines
620 B
C
Raw Normal View History

2001-04-10 23:21:43 +00:00
/*
* Time definitions
*
* Copyright 2000 Francois Gouget.
*/
#ifndef __WINE_STDDEF_H
#define __WINE_STDDEF_H
2001-10-22 18:59:23 +00:00
#define __WINE_USE_MSVCRT
2001-04-10 23:21:43 +00:00
#include "winnt.h"
typedef int ptrdiff_t;
#ifndef MSVCRT_SIZE_T_DEFINED
typedef unsigned int MSVCRT(size_t);
#define MSVCRT_SIZE_T_DEFINED
#endif
/* Best to leave this one alone: wchar_t */
2001-04-23 18:22:05 +00:00
#define offsetof(s,m) (size_t)&(((s*)NULL)->m)
2001-04-10 23:21:43 +00:00
#ifdef __cplusplus
extern "C" {
#endif
unsigned long __threadid();
unsigned long __threadhandle();
#define _threadid (__threadid())
#ifdef __cplusplus
}
#endif
#endif /* __WINE_STDDEF_H */