# HG changeset patch # User Michael Goffioul # Date 1319111672 -3600 # Node ID a2c74b5c02de68b9d8e48d56b117d70274be4dbf # Parent d13b6086aea9cc0f093e4f8fac3d2159cf5bb3fe [MSVC] Prevent duplicate symbol. * txt-eng-ft.cc: Include PermMatrix.h, only for MSVC. diff -r d13b6086aea9 -r a2c74b5c02de src/txt-eng-ft.cc --- a/src/txt-eng-ft.cc Thu Oct 20 12:54:26 2011 +0100 +++ b/src/txt-eng-ft.cc Thu Oct 20 12:54:32 2011 +0100 @@ -55,6 +55,14 @@ c); } +#ifdef _MSC_VER +// This is just a trick to avoid multiply symbols definition. +// PermMatrix.h contains a dllexport'ed Array +// that will make MSVC not to generate new instantiation and +// use the imported one. +#include "PermMatrix.h" +#endif + class ft_manager {