summaryrefslogtreecommitdiff
path: root/public/tier0/valve_off.h
diff options
context:
space:
mode:
Diffstat (limited to 'public/tier0/valve_off.h')
-rw-r--r--public/tier0/valve_off.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/public/tier0/valve_off.h b/public/tier0/valve_off.h
new file mode 100644
index 0000000..796408e
--- /dev/null
+++ b/public/tier0/valve_off.h
@@ -0,0 +1,30 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: This turns off all Valve-specific #defines. Because we sometimes
+// call external include files from inside .cpp files, we need to
+// wrap those includes like this:
+// #include "tier0/valve_off.h"
+// #include <external.h>
+// #include "tier0/valve_on.h"
+//
+// $NoKeywords: $
+//=============================================================================//
+
+
+#ifdef STEAM
+
+//-----------------------------------------------------------------------------
+// Unicode-related #defines (see wchartypes.h)
+//-----------------------------------------------------------------------------
+#undef char
+
+
+//-----------------------------------------------------------------------------
+// Memory-related #defines
+//-----------------------------------------------------------------------------
+#undef malloc
+#undef realloc
+#undef _expand
+#undef free
+
+#endif