Skip to content

Commit 6a52b3f

Browse files
BillyONealminggo
authored andcommitted
Add missing <functional> header which the standard requires and will be necessary to use std::function in VS2019. (cocos2d#18989)
1 parent b170daf commit 6a52b3f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cocos/audio/win32/AudioCache.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929

3030
#if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
3131

32-
#include <string>
32+
#include <functional>
33+
#include <memory>
3334
#include <mutex>
35+
#include <string>
3436
#include <vector>
35-
#include <memory>
3637
#ifdef OPENAL_PLAIN_INCLUDES
3738
#include <al.h>
3839
#else

cocos/audio/win32/AudioPlayer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929

3030
#if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
3131

32-
#include <string>
3332
#include <condition_variable>
33+
#include <functional>
3434
#include <mutex>
35+
#include <string>
3536
#include <thread>
3637
#ifdef OPENAL_PLAIN_INCLUDES
3738
#include <al.h>

0 commit comments

Comments
 (0)