#include <stdlib.h>
#include <stdint.h>
#include <string.h>
+#include "arch.h"
#include "../include/opus.h"
#include "test_opus_common.h"
* handling in our codebase, and the lack of thread saftey isn't an
* issue here. We therefore disable the warning for this function.
*/
-#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+#if defined(__GNUC_PREREQ) && __GNUC_PREREQ(4,6)
/* Save the current warning settings */
#pragma GCC diagnostic push
#endif
}
#ifdef MALLOC_FAIL
-#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+#if defined(__GNUC_PREREQ) && __GNUC_PREREQ(4,6)
/* Restore the previous warning settings */
#pragma GCC diagnostic pop /* restore -Wdeprecated-declarations */
#endif