C++: Add a mechanism to #define features that are enabled (#3103)

This commit is contained in:
Olivier Goffart 2023-07-18 11:49:00 +02:00 committed by GitHub
parent 0b867f4564
commit a1bf77383f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 58 additions and 24 deletions

View file

@ -3,11 +3,12 @@
#pragma once
#include "slint.h"
#ifndef SLINT_FEATURE_EXPERIMENTAL
# warning "slint_platform.h API only available when SLINT_FEATURE_EXPERIMENTAL is activated"
#else
# include "slint.h"
# include <utility>
struct xcb_connection_t;