diff --git a/contrib/Netgen/README.txt b/contrib/Netgen/README.txt
index e150ef243cf3c36289eb20dd3219c78713910e75..314fff0e0c2236c856d562e4282d2d650a1fc2d8 100644
--- a/contrib/Netgen/README.txt
+++ b/contrib/Netgen/README.txt
@@ -1,10 +1,13 @@
 
 This directory contains Joachim Sch\"oberl's NETGEN mesh generator:
 
-- the libsrc and nglib directories are unmodified copies taken from 
+The libsrc and nglib directories are unmodified copies taken from 
+
   svn co https://netgen-mesher.svn.sourceforge.net/svnroot/netgen-mesher
-  (SVN rev. 469)
 
-- the nglib_gmsh.cpp file replaces the original nglib/nglib.cpp file
+(SVN rev. 469), with the following exceptions:
+
+* dllexport/dllimport directives have been removed from nglib/nglib.h
+* nglib_gmsh.cpp file replaces the original nglib/nglib.cpp file
 
 See the LICENSE file for license information.
diff --git a/contrib/Netgen/nglib/nglib.h b/contrib/Netgen/nglib/nglib.h
index be9edb7b7adb74fb9aac731ae484c6dea1dc4429..a3bb606288ff35f30baf88a07bd7442bcbcab35c 100644
--- a/contrib/Netgen/nglib/nglib.h
+++ b/contrib/Netgen/nglib/nglib.h
@@ -23,7 +23,8 @@
 
 // Philippose - 14.02.2009
 // Modifications for creating a DLL in Windows
-#ifdef WIN32
+//#ifdef WIN32
+#if 0 // for GMSH
    #ifdef NGLIB_EXPORTS || nglib_EXPORTS
       #define DLL_HEADER   __declspec(dllexport)
    #else