From 6a52b3ff4ae9074d277ab2213aa1e318dec765c4 Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Thu, 20 Sep 2018 02:49:15 -0700 Subject: [PATCH] Add missing header which the standard requires and will be necessary to use std::function in VS2019. (#18989) --- cocos/audio/win32/AudioCache.h | 7 ++++--- cocos/audio/win32/AudioPlayer.h | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cocos/audio/win32/AudioCache.h b/cocos/audio/win32/AudioCache.h index a23dab49d4..b3c58f10ba 100644 --- a/cocos/audio/win32/AudioCache.h +++ b/cocos/audio/win32/AudioCache.h @@ -29,10 +29,11 @@ #if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 -#include -#include -#include +#include #include +#include +#include +#include #ifdef OPENAL_PLAIN_INCLUDES #include #else diff --git a/cocos/audio/win32/AudioPlayer.h b/cocos/audio/win32/AudioPlayer.h index 0dacf7a7fb..a7f8a579ed 100644 --- a/cocos/audio/win32/AudioPlayer.h +++ b/cocos/audio/win32/AudioPlayer.h @@ -29,9 +29,10 @@ #if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 -#include #include +#include #include +#include #include #ifdef OPENAL_PLAIN_INCLUDES #include