This is extract from #211 that enables compilation with GCC. With #211 now in the state of bitrot, I would rather try approaching it in smaller steps that can be hopefully merged quicker, even if it does not provide full support for all the features #211 provided. This will _compile_ correctly with my (@janisozaur) GCC, but clang is more picky about flexible array members and refuses to compile it yet. I will extract remaining parts of #211 in future PRs. I marked @fwcd as author, as he did most of the work in #211.
20 lines
259 B
C
20 lines
259 B
C
#pragma once
|
|
|
|
#if defined(_WIN32) && defined(_MSC_VER)
|
|
|
|
#include <sal.h>
|
|
|
|
#else
|
|
|
|
// Empty macro definitions for source annotations
|
|
|
|
#define _In_opt_
|
|
#define _Out_opt_
|
|
#define _In_
|
|
#define _Out_
|
|
#define _Inout_
|
|
#define __in_opt
|
|
#define _Frees_ptr_opt_
|
|
|
|
#endif
|