summaryrefslogtreecommitdiff
path: root/Ivy/IvyStdAfx.h
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:02:36 +0000
committerfcolin2007-02-01 13:02:36 +0000
commit32cf69c6042f917b72f853460022aedacdc0fbfb (patch)
tree60eea9af10fa2fa7c9a4bfc6f71ec4cbac909d06 /Ivy/IvyStdAfx.h
parentc47735cf1ac762f9fb9e2aa9a197b636b671c8b4 (diff)
downloadivy-cplusplus-32cf69c6042f917b72f853460022aedacdc0fbfb.zip
ivy-cplusplus-32cf69c6042f917b72f853460022aedacdc0fbfb.tar.gz
ivy-cplusplus-32cf69c6042f917b72f853460022aedacdc0fbfb.tar.bz2
ivy-cplusplus-32cf69c6042f917b72f853460022aedacdc0fbfb.tar.xz
Utilisateur : Fcolin Date : 31/01/01 Heure : 11:18 Archivé dans $/Ivy (vss 5)
Diffstat (limited to 'Ivy/IvyStdAfx.h')
-rw-r--r--Ivy/IvyStdAfx.h44
1 files changed, 32 insertions, 12 deletions
diff --git a/Ivy/IvyStdAfx.h b/Ivy/IvyStdAfx.h
index a036dd3..4a795f4 100644
--- a/Ivy/IvyStdAfx.h
+++ b/Ivy/IvyStdAfx.h
@@ -3,25 +3,24 @@
// are changed infrequently
//
-#if !defined(AFX_STDAFX_H__EE0269AE_DB02_11D2_89CA_00A0245B298A__INCLUDED_)
-#define AFX_STDAFX_H__EE0269AE_DB02_11D2_89CA_00A0245B298A__INCLUDED_
-
-#if _MSC_VER > 1000
#pragma once
-#endif // _MSC_VER > 1000
+
#ifdef WIN32
#pragma warning (disable : 4786)
#pragma warning( disable : 4275 ) // non dll-interface class 'X' used as base for dll-interface class 'Y'
#pragma warning( disable : 4251 ) // 'm' : class 'X' needs to have dll-interface to be used by clients of class 'Y'
+#include <crtdbg.h>
#endif
+#include <winsock2.h>
#include <stdio.h>
#include <stdarg.h>
-#include <assert.h>
+#include <string.h>
-#include <winsock2.h>
+//#include <assert.h>
+#ifdef _WINSOCK2API_
// Some definition missing from winsock2
/*
* Options for use with [gs]etsockopt at the IP level.
@@ -42,24 +41,45 @@ struct ip_mreq {
struct in_addr imr_multiaddr; /* IP multicast address of group */
struct in_addr imr_interface; /* local IP address of interface */
};
+#endif
+
+#ifndef _WIN32_WCE
+#define STL
+#endif
+#ifdef STL
#include <string>
#include <vector>
#include <map>
#include <list>
-typedef std::string String;
+using std::string;
+using std::vector;
+using std::map;
+using std::list;
+#else
+#include "DataTypes.h"
+#endif
//using namespace std;
#ifndef TRACE
#ifdef WIN32
+
void DebugTrace ( const char *fmt , ... );
#define TRACE DebugTrace
#else
#define TRACE printf
#endif
#endif
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__EE0269AE_DB02_11D2_89CA_00A0245B298A__INCLUDED_)
+#ifndef ASSERT
+#ifdef WIN32
+#define ASSERT(expr) \
+ do { \
+ if (!(expr) && (1 == _CrtDbgReport( \
+ _CRT_ASSERT, __FILE__, __LINE__, "Ivy", #expr))) \
+ _CrtDbgBreak(); \
+ } while (0)
+#else
+#define ASSERT printf
+#endif
+#endif