sysutils/src/SystemC.c
/*
* Helper functions for accessing standard C's "errno" value.
copied from m3core/src/C/Common/Cerrno.i3 for bootstrapping against older releases
*/
#ifdef _MSC_VER
#undef _DLL
#ifndef _MT
#define _MT
#endif
#endif
#if !defined(_MSC_VER) && !defined(__cdecl)
#define __cdecl /* nothing */
#endif
#if defined(__INTERIX) && !defined(_REENTRANT)
#define _REENTRANT
#endif
#include <errno.h>
#ifdef __cplusplus
extern "C" {
#endif
int
__cdecl
System__GetErrno(void)
{
return errno;
}
#ifdef __cplusplus
}
#endif