vcpkg/ports/pcl/fix_opennurbs_win32.patch
Markus Vieth 344b1d9608
[pcl] update to version 1.13.0 (#28818)
* [pcl] update to version 1.13.0

* More necessary changes

* Make requested changes

* Remove qhull patch

* Remove another patch

* Remove libusb patch

* Fix no-absolute.patch

* Fix patch

* Correct versions

* Allow static and shared deps

* Add patch for bigobj option

* Don't remove files

* Request opengl feature of vtk

* Add patch to remove problematic include

* Add patch to remove error in opennurbs code

* Add patch to disable kinfu for cuda 12

---------

Co-authored-by: Jonliu1993 <13720414433@163.com>
2023-01-30 16:41:37 -08:00

25 lines
962 B
Diff

diff --git a/surface/include/pcl/surface/3rdparty/opennurbs/opennurbs_system.h b/surface/include/pcl/surface/3rdparty/opennurbs/opennurbs_system.h
index 384e7bac8..cde079401 100644
--- a/surface/include/pcl/surface/3rdparty/opennurbs/opennurbs_system.h
+++ b/surface/include/pcl/surface/3rdparty/opennurbs/opennurbs_system.h
@@ -137,15 +137,15 @@
#if defined(_M_X64) && defined(WIN32) && defined(WIN64)
// 23 August 2007 Dale Lear
-#if defined(_INC_WINDOWS)
+//#if defined(_INC_WINDOWS)
// The user has included Microsoft's windows.h before opennurbs.h,
// and windows.h has nested includes that unconditionally define WIN32.
// Just undo the damage here or everybody that includes opennurbs.h after
// windows.h has to fight with this Microsoft bug.
#undef WIN32
-#else
-#error do not define WIN32 for x64 builds
-#endif
+//#else
+//#error do not define WIN32 for x64 builds
+//#endif
// NOTE _WIN32 is defined for any type of Windows build
#endif