vcpkg/ports/ccd/0001_fix_symbols_export.patch
Mikhail Paulyshka d7d571cb3e [libccd/ccd] rename from libccd to ccd, refactor
* use vcpkg_from_github
* enable cmake-exports
* rename from libccd to ccd (cmake-exports expects ccd as package name)
* export additional symbols (fixes FCL)
2017-08-27 04:17:41 +03:00

40 lines
1.3 KiB
Diff

From 05b5718a364ac525c8766387bd74faf852f98589 Mon Sep 17 00:00:00 2001
From: Mikhail Paulyshka <me@mixaill.tk>
Date: Sun, 27 Aug 2017 03:39:53 +0300
Subject: [PATCH] win32: export additional symbols, fixes FCL build on MSVC
---
src/ccd/vec3.h | 2 +-
src/support.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ccd/vec3.h b/src/ccd/vec3.h
index b0c1b33..014531c 100644
--- a/src/ccd/vec3.h
+++ b/src/ccd/vec3.h
@@ -93,7 +93,7 @@ typedef struct _ccd_vec3_t ccd_vec3_t;
/**
* Holds origin (0,0,0) - this variable is meant to be read-only!
*/
-extern ccd_vec3_t *ccd_vec3_origin;
+extern _ccd_export ccd_vec3_t *ccd_vec3_origin;
/**
* Array of points uniformly distributed on unit sphere.
diff --git a/src/support.h b/src/support.h
index 3372f5e..2e75df7 100644
--- a/src/support.h
+++ b/src/support.h
@@ -37,7 +37,7 @@ _ccd_inline void ccdSupportCopy(ccd_support_t *, const ccd_support_t *s);
* Computes support point of obj1 and obj2 in direction dir.
* Support point is returned via supp.
*/
-void __ccdSupport(const void *obj1, const void *obj2,
+_ccd_export void __ccdSupport(const void *obj1, const void *obj2,
const ccd_vec3_t *dir, const ccd_t *ccd,
ccd_support_t *supp);
--
2.12.2.windows.2