mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Make it possible to use the C++ headers without CMake
Detect the pointer size solely via the pre-processor
This commit is contained in:
parent
7a708525d9
commit
3f6bbaf53a
3 changed files with 19 additions and 7 deletions
18
api/sixtyfps-cpp/include/sixtyfps_config.h
Normal file
18
api/sixtyfps-cpp/include/sixtyfps_config.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue