#ifndef H_STDAFX #define H_STDAFX /** \file stdafx.h * precompiled header */ // detect OS #if defined(_WIN32) || defined(WIN32) || defined(WINVER) || defined(_WIN32_WINNT) #undef L2PACKETS_WINDOWS #define L2PACKETS_WINDOWS #else #undef L2PACKETS_LINUX #define L2PACKETS_LINUX #endif // before including windows and CRT headers, we must // kill warnings for Visual Studio #ifdef _MSC_VER #define _CRT_SECURE_NO_DEPRECATE // vc2005 #define _CRT_SECURE_NO_WARNINGS // vc2008 #endif #include #include #include #include #include #include #if defined(_WIN32) || defined(WIN32) || defined(WINVER) || defined(_WIN32_WINNT) #define WIN32_LEAN_AND_MEAN // for windows headers #include "targetver.h" #include #include #include #else // LINUX #include #include #include #include #include #include #include #include #include #include #endif #include #include #include #include #endif