Sha256: cfd9420ec55ab7a4762d5ead9991aad3366aced5b1d672262efeb35921962209

Contents?: true

Size: 1.3 KB

Versions: 13

Compression:

Stored size: 1.3 KB

Contents

// Copyright (C) 2006  Davis E. King (davis@dlib.net)
// License: Boost Software License   See LICENSE.txt for the full license.
#ifndef DLIB_WINDOWS_MAGIc_ 
#define DLIB_WINDOWS_MAGIc_ 

#include "platform.h"

#ifdef WIN32

// This file contains all the magical #defines you have to setup  before you
// include the windows header files.  

#ifndef NOMINMAX
#define NOMINMAX // prevent windows from messing with std::min and std::max
#endif

// Prevent windows from #defining IN or OUT
#ifndef _NO_W32_PSEUDO_MODIFIERS
#define _NO_W32_PSEUDO_MODIFIERS
#endif

// now just for good measure undefine min and max if they are defined
#ifdef min
#undef min
#endif

#ifdef max 
#undef max 
#endif

#ifdef NO_MAKEFILE
// only define this if all the cpp files are going to be sucked into the headers 
// because otherwise we don't need it since everything is isolated in the sockets
// cpp file and this declaration for _WINSOCKAPI_ appears there also.
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_   /* Prevent inclusion of winsock.h in windows.h */
#endif
#endif

// This is something stupid you have to do to make visual studio include the right
// stuff.  I don't really know what the deal is with this.
#if _WIN32_WINNT < 0x0500
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif

#endif // WIN32

#endif // DLIB_WINDOWS_MAGIc_

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dlib-1.2.2 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.2.1 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.2.0 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.1.5 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.1.4 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.1.3 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.1.2 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.1.1 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.1.0 ext/dlib-19.4/dlib/windows_magic.h
dlib-1.0.3 ext/dlib-18.13/dlib/windows_magic.h
dlib-1.0.2 ext/dlib-18.13/dlib/windows_magic.h
dlib-1.0.1 ext/dlib-18.13/dlib/windows_magic.h
dlib-1.0.0 ext/dlib-18.13/dlib/windows_magic.h