From 32cf69c6042f917b72f853460022aedacdc0fbfb Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:02:36 +0000 Subject: Utilisateur : Fcolin Date : 31/01/01 Heure : 11:18 Archivé dans $/Ivy (vss 5) --- Ivy/IvyStdAfx.h | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) (limited to 'Ivy') 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 #endif +#include #include #include -#include +#include -#include +//#include +#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 #include #include #include -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 -- cgit v1.1