Make it possible to use the C++ headers without CMake

Detect the pointer size solely via the pre-processor
This commit is contained in:
Simon Hausmann 2021-03-30 16:32:23 +02:00
parent 7a708525d9
commit 3f6bbaf53a
3 changed files with 19 additions and 7 deletions

View file

@ -0,0 +1,18 @@
/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
#pragma once
#include <cstdint>
#if UINTPTR_MAX == 0xFFFFFFFF
# define SIXTYFPS_TARGET_32
#elif UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFu
# define SIXTYFPS_TARGET_64
#endif