medfall

A super great game engine
Log | Files | Refs

pch.hpp (1689B)


      1 /*  Relacy Race Detector
      2  *  Copyright (c) 2008-2013, Dmitry S. Vyukov
      3  *  All rights reserved.
      4  *  This software is provided AS-IS with no warranty, either express or implied.
      5  *  This software is distributed under a license and may not be copied,
      6  *  modified or distributed except as expressly authorized under the
      7  *  terms of the license contained in the file LICENSE in this distribution.
      8  */
      9 
     10 #ifndef RL_PCH_HPP
     11 #define RL_PCH_HPP
     12 #ifdef _MSC_VER
     13 #   pragma once
     14 #endif
     15 
     16 #ifndef _CRT_SECURE_NO_WARNINGS
     17 #   define _CRT_SECURE_NO_WARNINGS 1
     18 #endif
     19 
     20 #ifdef _FORTIFY_SOURCE
     21 #    undef _FORTIFY_SOURCE
     22 #endif
     23 
     24 #ifndef _XOPEN_SOURCE
     25 #    define _XOPEN_SOURCE
     26 #endif
     27 
     28 #include <stdlib.h>
     29 #include <stdio.h>
     30 #include <stddef.h>
     31 #include <limits.h>
     32 #include <memory.h>
     33 #include <string.h>
     34 
     35 #include <typeinfo>
     36 #include <iostream>
     37 #include <sstream>
     38 #include <algorithm>
     39 #include <stdexcept>
     40 #include <utility>
     41 #include <iterator>
     42 #include <memory>
     43 #include <vector>
     44 #include <queue>
     45 #include <string>
     46 #include <stack>
     47 #include <set>
     48 #include <map>
     49 #include <new>
     50 
     51 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
     52 #   define RL_WIN
     53 #endif
     54 
     55 #if defined(RL_WIN) || defined(_CYGWIN)
     56 #   ifndef _WIN32_WINNT
     57 #       define _WIN32_WINNT 0x0500
     58 #   endif
     59 #   define WIN32_LEAN_AND_MEAN
     60 #   include <windows.h>
     61 #   include <process.h>
     62 #   ifdef RL_WIN
     63 #       include <intrin.h>
     64 #   else
     65 #       include <stdint.h>
     66 #       include <sys/times.h>
     67 #   endif
     68 #else
     69 #   include <stdint.h>
     70 #   include <sys/times.h>
     71 #   include <unistd.h>
     72 #   include <ucontext.h>
     73 #   include <setjmp.h>
     74 #endif
     75 
     76 #endif