浏览代码

Re-add EOF to bits header

cbindgen can't handle negative numbers, see https://github.com/eqrion/cbindgen/issues/205
jD91mZM2 6 年之前
父节点
当前提交
b22d386177
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/bits/stdio.h

+ 2 - 0
include/bits/stdio.h

@@ -1,6 +1,8 @@
 #ifndef _BITS_STDIO_H
 #define _BITS_STDIO_H
 
+#define EOF (-1)
+
 typedef struct FILE FILE;
 
 int fprintf(FILE * stream, const char * fmt, ...);