summaryrefslogtreecommitdiff
path: root/Bus
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:02:36 +0000
committerfcolin2007-02-01 13:02:36 +0000
commit63180e32d9a51f5c15e847fc248637843df53bf9 (patch)
treedb449f5dd2231831e4334259a22538386258b964 /Bus
parent1abb65db0185641174b5dba1195ca1d9d89760a9 (diff)
downloadivy-cplusplus-63180e32d9a51f5c15e847fc248637843df53bf9.zip
ivy-cplusplus-63180e32d9a51f5c15e847fc248637843df53bf9.tar.gz
ivy-cplusplus-63180e32d9a51f5c15e847fc248637843df53bf9.tar.bz2
ivy-cplusplus-63180e32d9a51f5c15e847fc248637843df53bf9.tar.xz
Utilisateur : Fcolin Date : 31/01/01 Heure : 11:18 Archivé dans $/Ivy (vss 5)
Diffstat (limited to 'Bus')
-rw-r--r--Bus/Ivy/IvyStdAfx.h44
1 files changed, 32 insertions, 12 deletions
diff --git a/Bus/Ivy/IvyStdAfx.h b/Bus/Ivy/IvyStdAfx.h
index a036dd3..4a795f4 100644
--- a/Bus/Ivy/IvyStdAfx.h
+++ b/Bus/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