forked from trailofbits/cb-multios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include stdarg.h instead of defining new types
Windows considers new definitions of va_(list|arg|start|end|copy) syntax errors, and instead expects stdarg.h to be included
- Loading branch information
Showing
265 changed files
with
1,775 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#ifndef STDARG_H_ | ||
#define STDARG_H_ | ||
|
||
#ifdef WIN | ||
#include <stdarg.h> | ||
#else | ||
typedef __builtin_va_list __gnuc_va_list; | ||
#define va_start(v,l) __builtin_va_start(v,l) | ||
#define va_end(v) __builtin_va_end(v) | ||
#define va_arg(v,l) __builtin_va_arg(v,l) | ||
#endif | ||
typedef __gnuc_va_list va_list; | ||
|
||
#endif /* !STDARG_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.