mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
cleanup headers for better portability
This commit is contained in:
parent
155231a440
commit
1eea0c6dc8
@ -30,7 +30,6 @@ target_compile_features(python_rgbcx PUBLIC cxx_std_20 c_std_11)
|
||||
target_compile_features(test_rgbcx PUBLIC cxx_std_20 c_std_11)
|
||||
|
||||
set_property(TARGET python_rgbcx test_rgbcx PROPERTY INTERPROCEDURAL_OPTIMIZATION True) #enable FLTO if available
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set_property(TARGET python_rgbcx test_rgbcx PROPERTY OSX_ARCHITECTURES_RELEASE x86_64 arm64) #Mach-O fat binary for arm and x86
|
||||
endif ()
|
||||
|
@ -18,8 +18,5 @@
|
||||
*/
|
||||
|
||||
#include "blocks.h"
|
||||
#include "color.h"
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
// endregion
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include <cstdlib>
|
||||
|
||||
#include "color.h"
|
||||
#include "util.h"
|
||||
|
||||
#pragma pack(push, 1)
|
||||
class BC1Block {
|
||||
|
@ -18,9 +18,12 @@
|
||||
*/
|
||||
|
||||
#include "color.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
// region Color32 implementation
|
||||
Color32::Color32() { set(0, 0, 0, 0xFF); }
|
||||
|
||||
|
@ -18,14 +18,11 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "util.h"
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
|
||||
#pragma pack(push, 1)
|
||||
class Color32 {
|
||||
public:
|
||||
public:
|
||||
union {
|
||||
struct {
|
||||
uint8_t R;
|
||||
|
@ -4,11 +4,12 @@
|
||||
#include "rgbcx.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
#include <climits>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <type_traits>
|
||||
|
||||
#include "blocks.h"
|
||||
#include "color.h"
|
||||
|
1464
src/test/test.cpp
1464
src/test/test.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user