[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: supercollider:[8083] trunk/Headers/plugin_interface/SC_PlugIn.h
Revision: 8083
http://supercollider.svn.sourceforge.net/supercollider/?rev=8083&view=rev
Author: danstowell
Date: 2008-12-08 22:01:14 +0000 (Mon, 08 Dec 2008)
Log Message:
-----------
windows.h defines min() and max() macros which break phrasing such as the recently-added std::numeric_limits<int32>::max() - so here we undefine them.
Modified Paths:
--------------
trunk/Headers/plugin_interface/SC_PlugIn.h
Modified: trunk/Headers/plugin_interface/SC_PlugIn.h
===================================================================
--- trunk/Headers/plugin_interface/SC_PlugIn.h 2008-12-08 21:58:50 UTC (rev 8082)
+++ trunk/Headers/plugin_interface/SC_PlugIn.h 2008-12-08 22:01:14 UTC (rev 8083)
@@ -50,4 +50,9 @@
#include <xmath.h>
#endif //_MSC_VER
+// windows.h defines min() and max() macros which break things such as
+// std::numeric_limits<int32>::max() - so let's undefine them
+#undef max
+#undef min
+
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/