Replace std::size usage with std_size to avoid <iterator> include.
This commit is contained in:
@ -52,7 +52,7 @@
|
||||
|
||||
using Microsoft::WRL::ComPtr;
|
||||
|
||||
#define ARRAY_SIZE(a) std::size(a)
|
||||
#define ARRAY_SIZE(a) std_size(a)
|
||||
|
||||
class RenderingContextDriverD3D12 : public RenderingContextDriver {
|
||||
ComPtr<ID3D12DeviceFactory> device_factory;
|
||||
|
||||
@ -3845,7 +3845,7 @@ void RasterizerSceneGLES3::_render_uv2(const PagedArray<RenderGeometryInstance *
|
||||
GL_COLOR_ATTACHMENT2,
|
||||
GL_COLOR_ATTACHMENT3
|
||||
};
|
||||
glDrawBuffers(std::size(draw_buffers), draw_buffers);
|
||||
glDrawBuffers(std_size(draw_buffers), draw_buffers);
|
||||
|
||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||
RasterizerGLES3::clear_depth(0.0);
|
||||
|
||||
@ -33,6 +33,8 @@
|
||||
#include "core/templates/hash_map.h"
|
||||
#include "core/templates/local_vector.h"
|
||||
|
||||
#include <iterator>
|
||||
|
||||
/// An unordered map that splits elements between a fast-access vector of LinearCount consecutively
|
||||
/// indexed elements, and a slower-access map holding sparse indexes larger than LinearCount.
|
||||
///
|
||||
|
||||
@ -36,8 +36,6 @@
|
||||
#include "core/os/time.h"
|
||||
#include "core/variant/dictionary.h"
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL_error.h>
|
||||
#include <SDL3/SDL_events.h>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
#include "thirdparty/swappy-frame-pacing/swappyVk.h"
|
||||
#endif
|
||||
|
||||
#define ARRAY_SIZE(a) std::size(a)
|
||||
#define ARRAY_SIZE(a) std_size(a)
|
||||
|
||||
#define PRINT_NATIVE_COMMANDS 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user