Browse Source

Merge pull request #158 from Michael0066/master

fixed: compile err
朱天龙 (Armink) 5 years ago
parent
commit
9d0a0adc9a
2 changed files with 2 additions and 1 deletions
  1. 1 1
      SConscript
  2. 1 0
      port/mpgetcharport.c

+ 1 - 1
SConscript

@@ -25,7 +25,7 @@ path   += [cwd + '/port/modules/machine']
 LOCAL_CCFLAGS = ''
 
 if rtconfig.CROSS_TOOL == 'gcc':
-    LOCAL_CCFLAGS += ' -std=c99'
+    LOCAL_CCFLAGS += ' -std=gnu99'
 elif rtconfig.CROSS_TOOL == 'keil':
     LOCAL_CCFLAGS += ' --c99 --gnu'
 

+ 1 - 0
port/mpgetcharport.c

@@ -25,6 +25,7 @@
  */
 
 #include <stdio.h>
+#include <stdint.h>
 #include <rtthread.h>
 #include <rtdevice.h>
 #include <rthw.h>