2001-04-11 01:21:43 +02:00
|
|
|
/*
|
|
|
|
* Time definitions
|
|
|
|
*
|
|
|
|
* Copyright 2000 Francois Gouget.
|
|
|
|
*/
|
|
|
|
#ifndef __WINE_STDDEF_H
|
|
|
|
#define __WINE_STDDEF_H
|
|
|
|
|
|
|
|
#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 20:22:05 +02:00
|
|
|
#define offsetof(s,m) (size_t)&(((s*)NULL)->m)
|
|
|
|
|
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
unsigned long __threadid();
|
|
|
|
unsigned long __threadhandle();
|
|
|
|
#define _threadid (__threadid())
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __WINE_STDDEF_H */
|