17 Commits

Author SHA1 Message Date
Gregory A Lundberg
f7bea59fe9 Finish switch to MT19937 for randomness
Coverity has been complaining about using rand() as an insecure function. As we're using it, this function is not insecure; but is also not a very good RNG. We're using MT19937 in a system-independant manner. But some uses of rand() were never converted. This converts them.

This closes the following Coverity issues:

CID 1356297
CID 1356299
CID 1356303
CID 1356304
CID 1356306
CID 1356312
CID 1356314
CID 1380163
CID 1380173
CID 1380179
CID 1380191
CID 1380198
CID 1380201
CID 1380210
CID 1380214
CID 1380215
CID 1380219
CID 1380230
CID 1380241
2017-10-26 09:28:24 +11:00
Wedge009
3be5346051 Updating VC project files for 010237fb and c4d55647.
[ci skip]
2017-10-10 22:14:04 +11:00
Jyrki Vesterinen
7507f3cc65 Copy string_view implementation from Boost
@gfgtdf asked me for this in IRC.
2017-06-02 14:24:29 +03:00
Celtic Minstrel
96ca0b026e Replace config_of with new variadic config constructor 2017-05-21 16:27:46 -04:00
Jyrki Vesterinen
fb8506dbac Fix build with Visual Studio
First, VS2015 doesn't appear to support importing alias templates directly,
so let's make an alias template ourselves and import every alias we need.

That approach doesn't work with VS2013, apparently due to lack of support
for expression SFINAE. Thus, we now use our custom alias templates on
VS2013.

Also, I moved type_trait_aliases.hpp to the wesnothlib project where it
belongs.

Note that because of requiring expression SFINAE on VS2015, building
Wesnoth on VS2015 now requires that Update 1 or above is installed.
2017-05-16 21:08:26 +03:00
Wedge009
4d84f08354 Update VC projects for 13b00f73, cdaa588e, and 3fce91a8.
[ci skip]
2017-05-15 19:37:43 +10:00
Wedge009
9451452fb4 Updating VC project files for 1cf90d02.
Also tidy some filters.

[ci skip]
2017-03-24 12:38:59 +11:00
Jyrki Vesterinen
2c00677d4b Add lexical_cast.hpp to wesnothlib.vcxproj 2017-03-18 12:26:44 +02:00
Wedge009
f535b6a9f7 Minor updates to VC project.
[ci skip]
2016-12-11 20:25:04 +11:00
Celtic Minstrel
c2ed9c5c19 MSVC project file cleanup
- Add a few missing headers
- Remove redundant headers
- Remove duplicate include of filesystem sources
- Remove an empty source file

[ci skip]
2016-12-01 16:18:03 -05:00
Celtic Minstrel
e7e5ca5fa2 Fix Travis 2016-12-01 15:06:25 +02:00
Wedge009
5ab0c22300 Added spirit_po to wesnothlib VC project. 2016-11-19 10:58:54 +11:00
Wedge009
6faef63beb Removing recently-deleted files from VC projects. 2016-11-08 11:21:31 +11:00
Jyrki Vesterinen
3858b22073 Update Visual Studio project 2016-10-16 21:39:02 +03:00
Wedge009
6ba16e9bc6 Removing lingering references to scoped_resource.hpp. 2016-09-24 17:00:46 +10:00
Wedge009
47ad8d3833 VC project files: Removing network code from libwesnoth as requested by gfgtdf. 2016-06-08 04:36:22 +10:00
Celtic Minstrel
6c9cd2998e Update MSVC project files to VC12 (2013) 2016-04-30 02:31:34 -04:00