move some z/OS definitions to a platform file: very tentative
Not yet really tested on z/OS, so I expect things to break there. But Unix should keep working. Waiting for feedback from Lev.ENGINE-930
parent
03f03f9229
commit
19a4d2eda4
@ -0,0 +1,15 @@
|
||||
// This file is under GNU General Public License 3.0
|
||||
// see LICENSE.txt
|
||||
|
||||
/* Include the entire useful part of this compilation unit within a CPP
|
||||
conditional, so that the entire file expands to nothing if this is not
|
||||
the platform it is used on. */
|
||||
#ifdef ZOS
|
||||
|
||||
#include "pEpEngine.h"
|
||||
#include "platform_zos.h"
|
||||
#include "dynamic_api.h"
|
||||
|
||||
/* Nothing useful here at this time. */
|
||||
|
||||
#endif // #ifdef ZOS
|
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @file platform_zos.h
|
||||
* @brief z/OS platform-specific implementation details
|
||||
* @license GNU General Public License 3.0 - see LICENSE.txt
|
||||
*/
|
||||
|
||||
#ifndef PEP_PLATFORM_ZOS_H
|
||||
#define PEP_PLATFORM_ZOS_H
|
||||
|
||||
#if ! defined (ZOS)
|
||||
# error "this header should only ever be included on z/OS"
|
||||
#endif
|
||||
|
||||
/* Workaround standard header problems. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
# undef _EXT
|
||||
# define _NO_EXT
|
||||
#endif
|
||||
#include_next <stdlib.h>
|
||||
|
||||
#ifndef __cplusplus
|
||||
char * stpcpy (char *dst, const char *src);
|
||||
char * strndup (const char *s, size_t n);
|
||||
size_t strnlen (const char *s, size_t maxlen);
|
||||
#endif
|
||||
#include <strings.h>
|
||||
|
||||
#include_next <string.h>
|
||||
|
||||
|
||||
#endif // #ifndef PEP_PLATFORM_ZOS_H
|
@ -1,8 +0,0 @@
|
||||
#ifdef ZOS
|
||||
#ifdef __cplusplus
|
||||
#undef _EXT
|
||||
#define _NO_EXT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include_next <stdlib.h>
|
@ -1,10 +0,0 @@
|
||||
#ifdef ZOS
|
||||
#ifndef __cplusplus
|
||||
char * stpcpy (char *dst, const char *src);
|
||||
char * strndup (const char *s, size_t n);
|
||||
size_t strnlen (const char *s, size_t maxlen);
|
||||
#endif
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#include_next <string.h>
|
Loading…
Reference in New Issue