Skip to content

Commit ce8af02

Browse files
committed
Merge pull request #82 from talex5/minios2
No stdio.h on Mini-OS, so use cdefs.h again there
2 parents 44a4964 + b198562 commit ce8af02

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cdefs-compat.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
#ifndef _CDEFS_COMPAT_H_
22
#define _CDEFS_COMPAT_H_
33

4+
#ifdef __MINIOS__
5+
/* No stdio.h on Mini-OS. */
6+
#include <sys/cdefs.h>
7+
#else
48
/*
59
* We cannot be certain that this operating system has <sys/cdefs.h>.
610
* Instead, include a header file that is likely to pull in this header.
711
*/
812
#include <stdio.h>
13+
#endif
914

1015
#if defined(__cplusplus)
1116
#define __BEGIN_DECLS extern "C" {

0 commit comments

Comments
 (0)