Ticket #3439: vs2015.2.diff

File vs2015.2.diff, 2.4 KB (added by leper, 8 years ago)

Possible fix for the compilation issue.

  • source/lib/sysdep/os/win/wdll_delay_load.cpp

     
    1 /* Copyright (c) 2013 Wildfire Games
     1/* Copyright (c) 2016 Wildfire Games
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
    44 * a copy of this software and associated documentation files (the
     
    3636//-----------------------------------------------------------------------------
    3737// delay loading (modified from VC7 DelayHlp.cpp and DelayImp.h)
    3838
    39 #if MSC_VERSION && MSC_VERSION >= 1700
     39#if MSC_VERSION >= 1700
    4040// FACILITY_VISUALCPP is already defined in winerror.h in VC2012
    4141# undef FACILITY_VISUALCPP
    4242#endif
  • source/lib/sysdep/os/win/wposix/wtime.h

     
    1 /* Copyright (c) 2010 Wildfire Games
     1/* Copyright (c) 2016 Wildfire Games
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
    44 * a copy of this software and associated documentation files (the
     
    5858}
    5959clockid_t;
    6060
     61#if MSC_VERSION >= 1900
     62# include <time.h>
     63#else
    6164// POSIX realtime clock_*
    6265struct timespec
    6366{
    6467    time_t tv_sec;
    6568    long   tv_nsec;
    6669};
     70#endif
    6771
    6872extern int nanosleep(const struct timespec* rqtp, struct timespec* rmtp);
    6973extern int clock_gettime(clockid_t clock, struct timespec* ts);
  • source/third_party/mongoose/mongoose.cpp

     
    1212//  * To avoid debug spew, we disable DEBUG.
    1313//  * Use memcopy to get rid of strict-aliasing warning
    1414//  * Remove use of deprecated 'register' storage class
     15//  * Fix build for VS2015
    1516
    1617#define __STDC_LIMIT_MACROS
    1718
     
    178179typedef DWORD pthread_t;
    179180#define pid_t HANDLE // MINGW typedefs pid_t to int. Using #define here.
    180181
     182#if defined(_MSC_VER) && _MSC_VER >= 1900
     183#include <time.h>
     184#elif defined(_MSC_VER)
    181185struct timespec {
    182186  long tv_nsec;
    183187  long tv_sec;
    184188};
     189#endif
    185190
    186191static int pthread_mutex_lock(pthread_mutex_t *);
    187192static int pthread_mutex_unlock(pthread_mutex_t *);