[SDK] Fix preprocessor usage
Signed-off-by: Quinn Stephens <quinn@osmora.org>
This commit is contained in:
@@ -18,7 +18,7 @@ Abstract:
|
||||
#ifndef _STDARG_H
|
||||
#define _STDARG_H 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,7 @@ typedef __builtin_va_list va_list;
|
||||
#define va_copy(ap, s) __builtin_va_copy(ap, s)
|
||||
#define va_end(ap) __builtin_va_end(ap)
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -18,7 +18,7 @@ Abstract:
|
||||
#ifndef _STDDEF_H
|
||||
#define _STDDEF_H 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -34,7 +34,7 @@ extern "C" {
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
#define _SIZE_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
#if defined(_WIN64)
|
||||
typedef unsigned __int64 size_t;
|
||||
#else
|
||||
typedef unsigned int size_t;
|
||||
@@ -43,7 +43,7 @@ typedef unsigned int size_t;
|
||||
|
||||
#ifndef _PTRDIFF_T_DEFINED
|
||||
#define _PTRDIFF_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
#if defined(_WIN64)
|
||||
typedef __int64 ptrdiff_t;
|
||||
#else
|
||||
typedef long int ptrdiff_t;
|
||||
@@ -57,7 +57,7 @@ typedef unsigned short wchar_t;
|
||||
|
||||
#define offsetof(type, member) __builtin_offsetof(type, member)
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -20,7 +20,7 @@ Abstract:
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -35,7 +35,7 @@ int strncmp(const char *s1, const char *s2, size_t n);
|
||||
char *strchr(const char *s, int c);
|
||||
char *strstr(const char *haystack, const char *needle);
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -21,7 +21,7 @@ Abstract:
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -40,7 +40,7 @@ wchar_t *wcscat_s(wchar_t *dest, size_t maxlen, const wchar_t *src);
|
||||
|
||||
int vswprintf(wchar_t *wcs, size_t maxlen, const wchar_t *format, va_list args);
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user