mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
No stdio.h on Mini-OS, so use cdefs.h again there.
This commit is contained in:
parent
ee2976996d
commit
b19856215c
1 changed files with 5 additions and 0 deletions
|
@ -1,11 +1,16 @@
|
||||||
#ifndef _CDEFS_COMPAT_H_
|
#ifndef _CDEFS_COMPAT_H_
|
||||||
#define _CDEFS_COMPAT_H_
|
#define _CDEFS_COMPAT_H_
|
||||||
|
|
||||||
|
#ifdef __MINIOS__
|
||||||
|
/* No stdio.h on Mini-OS. */
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
#else
|
||||||
/*
|
/*
|
||||||
* We cannot be certain that this operating system has <sys/cdefs.h>.
|
* We cannot be certain that this operating system has <sys/cdefs.h>.
|
||||||
* Instead, include a header file that is likely to pull in this header.
|
* Instead, include a header file that is likely to pull in this header.
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#define __BEGIN_DECLS extern "C" {
|
#define __BEGIN_DECLS extern "C" {
|
||||||
|
|
Loading…
Reference in a new issue