summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-07-16 11:27:28 +0200
committerMartijn van Beurden <mvanb1@gmail.com>2022-07-19 17:33:29 +0200
commit67131c04b8817c83b1744bcb7e4ffdde2bf92720 (patch)
tree4922a2d8e4747832d03eefd169eec4c37c391f10 /include
parent99885d3d64d1af49c9498c4513f04b4d5674c160 (diff)
downloadflac-67131c04b8817c83b1744bcb7e4ffdde2bf92720.tar.gz
Include stddef.h in compat.h
See https://github.com/xiph/flac/issues/76 for details Also, move include of stddef.h and stdarg.h up to top of file to make clear that they are included unconditionally
Diffstat (limited to 'include')
-rw-r--r--include/share/compat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/share/compat.h b/include/share/compat.h
index e9e522a7..a139eed4 100644
--- a/include/share/compat.h
+++ b/include/share/compat.h
@@ -39,6 +39,9 @@
#ifndef FLAC__SHARE__COMPAT_H
#define FLAC__SHARE__COMPAT_H
+#include <stddef.h>
+#include <stdarg.h>
+
#if defined _WIN32 && !defined __CYGWIN__
/* where MSVC puts unlink() */
# include <io.h>
@@ -198,7 +201,6 @@
*
* This function wraps the MS version to behave more like the ISO version.
*/
-#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif