Ticket #3439: vs2015.diff

File vs2015.diff, 1.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) 2015 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

     
    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);