Browse Source

add minilibc files for gcc compiler

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@377 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 15 years ago
parent
commit
ce9eba9e53
3 changed files with 21 additions and 0 deletions
  1. 12 0
      libc/minilibc/math.c
  2. 4 0
      libc/minilibc/math.h
  3. 5 0
      libc/minilibc/stdio.h

+ 12 - 0
libc/minilibc/math.c

@@ -0,0 +1,12 @@
+#include <math.h>
+
+/* Fix me */
+double sin(double x) 
+{
+	#warning sin function not supported for this platform
+}
+
+double cos(double x) 
+{
+	#warning cos function not supported for this platform
+}

+ 4 - 0
libc/minilibc/math.h

@@ -0,0 +1,4 @@
+#ifndef __STDIO_H__
+#define __STDIO_H__
+
+#endif

+ 5 - 0
libc/minilibc/stdio.h

@@ -0,0 +1,5 @@
+#ifndef __STDIO_H__
+#define __STDIO_H__
+
+#endif
+