summaryrefslogtreecommitdiff
path: root/nuttx/configs/rgmp/include/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/rgmp/include/stdarg.h')
-rwxr-xr-xnuttx/configs/rgmp/include/stdarg.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/nuttx/configs/rgmp/include/stdarg.h b/nuttx/configs/rgmp/include/stdarg.h
index 8f879a819..b748243d1 100755
--- a/nuttx/configs/rgmp/include/stdarg.h
+++ b/nuttx/configs/rgmp/include/stdarg.h
@@ -1,23 +1,8 @@
-#ifndef _RGMP_STDARG_H
-#define _RGMP_STDARG_H
+#ifndef _CONFIG_RGMP_STDARG_H
+#define _CONFIG_RGMP_STDARG_H
-typedef char *va_list;
-#define __va_size(type) \
- (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
+#include <rgmp/stdarg.h>
-#ifndef va_start
-#define va_start(ap, last) \
- ((ap) = (va_list)&(last) + __va_size(last))
-#endif
-
-#ifndef va_arg
-#define va_arg(ap, type) \
- (*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
-#endif
-
-#ifndef va_end
-#define va_end(ap) ((void)0)
-#endif
#endif