mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Reformat the code, using:
find -type f | # list all regular files grep -E '\.(h|cpp|mm)$' | # filter for source files grep -v '/mt_' | # filter out generated files grep -v '/vendor/' | # and vendored GL grep -v '/test/image_loader_test.cpp' | # and this file (has giant literals arrays) xargs -n 1 -P $(nproc) clang-format -i # reformat everything Co-authored-by: numzero <numzer0@yandex.ru>
This commit is contained in:
@ -14,13 +14,12 @@
|
||||
|
||||
// byte-align structures
|
||||
#if defined(_MSC_VER)
|
||||
# pragma warning(disable: 4103)
|
||||
# pragma pack( push, packing )
|
||||
# pragma pack( 1 )
|
||||
# define PACK_STRUCT
|
||||
#elif defined( __GNUC__ )
|
||||
# define PACK_STRUCT __attribute__((packed))
|
||||
#pragma warning(disable : 4103)
|
||||
#pragma pack(push, packing)
|
||||
#pragma pack(1)
|
||||
#define PACK_STRUCT
|
||||
#elif defined(__GNUC__)
|
||||
#define PACK_STRUCT __attribute__((packed))
|
||||
#else
|
||||
# error compiler not supported
|
||||
#error compiler not supported
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user