-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2169 from ghaerr/watcom
[libc, Watcom C] Fix gettimeofday, ctime and __amalloc debug speed
- Loading branch information
Showing
5 changed files
with
116 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/*************************************************************************** | ||
* FILE: stddef.h/cstddef (Standard definitions) | ||
* | ||
* ========================================================================= | ||
* | ||
* Open Watcom Project | ||
* | ||
* Copyright (c) 2004-2024 The Open Watcom Contributors. All Rights Reserved. | ||
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved. | ||
* | ||
* This file is automatically generated. Do not edit directly. | ||
* | ||
* ========================================================================= | ||
* | ||
* Description: This header is part of the C/C++ standard library. It | ||
* introduces certain commonly needed type names and | ||
* supplies the offsetof macro. | ||
***************************************************************************/ | ||
#ifndef _STDDEF_H_INCLUDED | ||
#define _STDDEF_H_INCLUDED | ||
|
||
#ifndef _ENABLE_AUTODEPEND | ||
#pragma read_only_file | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
|
||
#include <cstddef> | ||
|
||
// C99 types in stddef.h | ||
#ifndef _SIZE_T_DEFINED | ||
#define _SIZE_T_DEFINED | ||
#define _SIZE_T_DEFINED_ | ||
using std::size_t; | ||
#endif | ||
#ifndef _PTRDIFF_T_DEFINED | ||
#define _PTRDIFF_T_DEFINED | ||
#define _PTRDIFF_T_DEFIEND_ | ||
using std::ptrdiff_t; | ||
#endif | ||
|
||
#else /* __cplusplus not defined */ | ||
|
||
#ifndef __COMDEF_H_INCLUDED | ||
#include <_comdef.h> | ||
#endif | ||
|
||
#ifndef NULL | ||
#ifdef __RDOSDEV__ | ||
#define NULL 0 | ||
#else | ||
#define NULL ((void *)0) | ||
#endif | ||
#endif | ||
|
||
#define offsetof(__typ,__id) ((size_t)((char *)&(((__typ*)0)->__id) - (char *)0)) | ||
|
||
#ifndef _WCHAR_T_DEFINED | ||
#define _WCHAR_T_DEFINED | ||
#define _WCHAR_T_DEFINED_ | ||
typedef unsigned short wchar_t; | ||
#endif | ||
|
||
#ifndef _SIZE_T_DEFINED | ||
#define _SIZE_T_DEFINED | ||
#define _SIZE_T_DEFINED_ | ||
typedef unsigned size_t; | ||
typedef size_t __w_size_t; | ||
#endif | ||
|
||
#ifndef _PTRDIFF_T_DEFINED | ||
#define _PTRDIFF_T_DEFINED | ||
#define _PTRDIFF_T_DEFINED_ | ||
#ifdef __HUGE__ | ||
typedef long ptrdiff_t; | ||
#else | ||
typedef int ptrdiff_t; | ||
#endif | ||
#endif | ||
|
||
#if !defined( _NO_EXT_KEYS ) /* extensions enabled */ | ||
#ifdef _M_I86 | ||
_WCRTDATA extern int _WCFAR *_threadid; /* pointer to thread id */ | ||
#else | ||
#define _threadid (__threadid()) | ||
_WCRTLINK extern int *__threadid( void ); /* pointer to thread id */ | ||
#ifdef __NT__ | ||
_WCRTLINK extern unsigned long __threadhandle( void ); | ||
#endif | ||
#endif | ||
#endif /* extensions enabled */ | ||
|
||
#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ == 1 | ||
|
||
#ifndef _RSIZE_T_DEFINED | ||
#define _RSIZE_T_DEFINED | ||
typedef size_t rsize_t; | ||
#endif | ||
|
||
#endif /* __STDC_WANT_LIB_EXT1__ */ | ||
|
||
#endif /* __cplusplus not defined */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters