53 lines
1.8 KiB
C
53 lines
1.8 KiB
C
/*****************************************************************************\
|
|
* *
|
|
* Filename: stdlib.h *
|
|
* *
|
|
* Description: MsvcLibX extensions to stdlib.h. *
|
|
* *
|
|
* Notes: *
|
|
* *
|
|
* History: *
|
|
* 2016-09-13 JFL Created this file. *
|
|
* *
|
|
* Copyright 2016 Hewlett Packard Enterprise Development LP *
|
|
* Licensed under the Apache 2.0 license - www.apache.org/licenses/LICENSE-2.0 *
|
|
\*****************************************************************************/
|
|
|
|
#ifndef _MSVCLIBX_stdlib_H
|
|
#define _MSVCLIBX_stdlib_H 1
|
|
|
|
#include "msvclibx.h"
|
|
|
|
#include <stdlib.h> /* Include MSVC's own <stdlib.h> file */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/************************ MS-DOS-specific definitions ************************/
|
|
|
|
#ifdef _MSDOS /* Automatically defined when targeting an MS-DOS application */
|
|
|
|
#endif /* defined(_MSDOS) */
|
|
|
|
/************************ Win32-specific definitions *************************/
|
|
|
|
#ifdef _WIN32 /* Automatically defined when targeting a Win32 application */
|
|
|
|
extern char *_fullpathU(char *absPath, const char *relPath, size_t maxLength);
|
|
|
|
#if defined(_UTF8_SOURCE) || defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
|
|
#define _fullpath _fullpathU /* For processing UTF-8 pathnames */
|
|
#endif
|
|
|
|
#endif /* defined(_WIN32) */
|
|
|
|
/********************** End of OS-specific definitions ***********************/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* defined(_MSVCLIBX_stdlib_H) */
|
|
|