whiskey0201 / lib3ds

Automatically exported from code.google.com/p/lib3ds
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Static linkage on VS #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, currently there is no support for static linkage on Visual Studio (I
mean just including the lib3ds source files into your app/game project
file).

Kabey fixed this, here is the (simple) patch. Note that he did not add a
configuration to the visual studio project, but this could be easily done
by you.

Here is the patch for it, hope you enjoy:

--- trunk/3d/lib3ds/lib3ds.h 2008-06-18 17:07:36 UTC (rev 1020)
+++ trunk/3d/lib3ds/lib3ds.h 2008-06-21 17:45:38 UTC (rev 1021)
@@ -25,6 +25,8 @@
#ifdef _MSC_VER
#ifdef LIB3DS_EXPORTS
#define LIB3DSAPI __declspec(dllexport)
+ #elif defined(LIB3DS_STATIC)
+ #define LIB3DSAPI
#else
#define LIB3DSAPI __declspec(dllimport)
#endif
@@ -33,6 +35,7 @@
#endif
#endif

Original issue reported on code.google.com by jkypr...@gmail.com on 20 Jan 2010 at 9:10

GoogleCodeExporter commented 8 years ago

Original comment by jkypr...@gmail.com on 21 Jan 2010 at 7:18

GoogleCodeExporter commented 8 years ago
r102

Original comment by jkypr...@gmail.com on 21 Jan 2010 at 7:46