Skip to content

Commit

Permalink
add guard to c_headers for duplicate va_list on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Oct 26, 2017
1 parent c7053be commit f4ca348
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c_headers/stdarg.h
Expand Up @@ -26,10 +26,14 @@
#ifndef __STDARG_H
#define __STDARG_H

/* zig: added because macos _va_list.h was duplicately defining va_list
*/
#ifndef _VA_LIST
#ifndef _VA_LIST_T
typedef __builtin_va_list va_list;
#define _VA_LIST
#endif
#endif
#define va_start(ap, param) __builtin_va_start(ap, param)
#define va_end(ap) __builtin_va_end(ap)
#define va_arg(ap, type) __builtin_va_arg(ap, type)
Expand Down

0 comments on commit f4ca348

Please sign in to comment.