summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2007-10-19 19:35:48 -0400
committerDwight <dmerriman@gmail.com>2007-10-19 19:35:48 -0400
commite73188b5512c82290a4070af4afddac20d0b981e (patch)
treecf25c77d94478ecfe372bd2d8a2d59b8817918dd /stdafx.h
downloadmongo-e73188b5512c82290a4070af4afddac20d0b981e.tar.gz
first commit
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
new file mode 100644
index 00000000000..55b7250f2c6
--- /dev/null
+++ b/stdafx.h
@@ -0,0 +1,43 @@
+// stdafx.h : include file for standard system include files,
+// or project specific include files that are used frequently, but
+// are changed infrequently
+//
+
+#pragma once
+
+#include "targetver.h"
+
+#include "assert.h"
+#include <stdio.h>
+#include <sstream>
+
+//#if defined(_WIN32)
+//#include <tchar.h>
+//#else
+typedef char _TCHAR;
+//#endif
+
+#include <iostream>
+#include <fstream>
+using namespace std;
+
+#if !defined(_WIN32)
+typedef int HANDLE;
+inline void strcpy_s(char *dst, unsigned len, const char *src) { strcpy(dst, src); }
+#else
+typedef void *HANDLE;
+#endif
+
+//#if defined(CHAR)
+//#error CHAR already defined?
+//#endif
+
+//#if defined(_WIN32_WINNT)
+//typedef wchar_t CHAR;
+//#else
+// more to be done...linux unicode is 32 bit.
+//typedef unsigned short CHAR; // 16 bit unicode
+//#endif
+
+#define null (0)
+