Commit Graph

15 Commits

Author SHA1 Message Date
John Emmas
4dd3d4effe Some initial changes (currently for libpbd only) to help a new contributer who's trying to build with MSVC2017
These changes compile okay for me (using VS2019) although they wouldn't link to my older-built libraries. Hopefully he'll be okay if he builds everything with the same compiler.
2020-03-26 10:40:36 +00:00
0301c47f6b
Update core library GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
9df3a2a547 When building with MSVC some of the header file stuff is only relevant in early versions (e.g. VC8) 2016-09-30 08:24:51 +01:00
8e2d1c7f2a Move 'round()' / 'trunc()' etc so that they won't conflict with any versions already available in MSVC 2016-08-19 14:11:01 +01:00
a0b117b948 'roundf()' wasn't introduced in MSVC until VS2013 - so for the time being, let's emulate it using 'floorf()' 2016-08-19 14:11:00 +01:00
22e031135a Emulate 'log1p()' and 'expm1()' using 'log()' and 'exp()'
(for MSVC which didn't implement those functions until very recent versions).
2016-05-28 19:07:22 +01:00
dc1a2fbca7 MSVC won't compile 'const float _demolition[]' because it uses 'divide by zero' while initializing
Hopefully we can use INFINITY and NAN for the relevant initializers ?
2016-05-03 17:30:58 +01:00
8b5474b9e1 For MSVC builds, implement 'rint()' and 'rintf()' to supplement the ones that were already implemented 2015-04-24 19:11:10 +01:00
f598105966 Add support for the C99 function 'log2()' which is newly needed by 'gtk2_ardour/tempo_lines.cc' (but isn't available from MSVC).
These changes are MSVC specific and shouldn't affect the other builds.

(incidentally, libpbd already offers a function called 'fast_log2()'. Not sure if that could have been used instead...)
2015-01-10 11:56:24 +00:00
fa45202811 Change the function signature for 'abs(int64_t)' (Windows) so that it doesn't conflict with more recent versions of MSVC 2014-06-04 18:20:33 +01:00
8e51a6c84f Check in some minor modifications (to MSVC specific headers) 2014-01-13 10:22:31 +00:00
7d78172abf Miscellaneous additions to 'msvc_extra_headers' 2013-10-06 11:01:25 +01:00
9b6687ff3f Modify 'ardourext/misc.h' so that it only uses C++ constructs when the compilation is cplusplus 2013-08-27 17:10:46 +01:00
490311bc08 'libs/ardour' - Main body of changes required for building with MSVC 2013-08-04 15:36:07 +01:00
eeabf89d19 Miscellaneous header files (needed for building libpbd with MSVC) 2013-07-17 14:55:20 +01:00