Collect all #define PYBIND11_HAS_... in pybind11/detail/common.h (#5647)

This commit is contained in:
Ralf W. Grosse-Kunstleve
2025-05-08 23:46:01 -07:00
committed by GitHub
parent 002c05b17e
commit c125cc789c
7 changed files with 28 additions and 37 deletions

View File

@@ -12,10 +12,10 @@
#include "constructor_stats.h"
#include "pybind11_tests.h"
#ifndef PYBIND11_HAS_FILESYSTEM_IS_OPTIONAL
# define PYBIND11_HAS_FILESYSTEM_IS_OPTIONAL
#if defined(PYBIND11_HAS_FILESYSTEM) || defined(PYBIND11_HAS_EXPERIMENTAL_FILESYSTEM)
# include <pybind11/stl/filesystem.h>
#endif
#include <pybind11/stl/filesystem.h>
#include <pybind11/typing.h>
#include <string>