Files
Xenia-Canary/src/xenia/base
sephiroth99 4861022158 [Base] Fix fpfs with GCC/Clang
The fpfs function is using strtof to convert a string to floating point
value, but the type may be a double. Using strtof in that case won't
provide enough precision, so switch to using strtod. When the type is a
float, the double will be down-converted to the correct value.
2021-08-08 10:23:52 -05:00
..
2021-06-02 22:28:43 -05:00
2021-06-02 22:28:43 -05:00
2018-11-22 09:48:04 -06:00
2015-09-22 07:38:59 -07:00
2021-07-01 23:32:26 +03:00
2020-04-07 16:09:41 -05:00
2019-12-01 17:11:58 -06:00
2020-04-07 16:09:41 -05:00
2020-04-13 12:57:14 -05:00
2020-04-07 16:09:41 -05:00
2020-04-07 16:09:41 -05:00
2015-08-07 21:29:03 -07:00
2017-09-20 23:29:39 +02:00
2020-04-07 16:09:41 -05:00
2020-04-07 16:09:41 -05:00
2021-01-31 23:22:59 -06:00
2020-04-07 16:09:41 -05:00
2020-04-07 16:09:41 -05:00
2020-04-07 16:09:41 -05:00
2015-08-06 20:17:01 -07:00
2021-06-05 15:04:06 +03:00
2021-06-02 22:28:43 -05:00
2021-06-02 22:28:43 -05:00
2020-04-07 16:09:41 -05:00
2021-07-01 23:32:26 +03:00
2021-07-01 23:32:26 +03:00
2020-04-07 16:09:41 -05:00
2020-04-07 16:09:41 -05:00
2021-06-02 22:28:43 -05:00
2021-08-08 10:23:52 -05:00
2020-04-07 16:09:41 -05:00
2020-04-07 16:09:41 -05:00
2020-04-07 16:09:41 -05:00
2020-12-08 22:31:09 +03:00

A lightweight cross-platform/compiler compatibility library.

This library presupposes C++11/14 support. As more compilers get C++14 it will assume that.

Other parts of the project use this to avoid creating spaghetti linkage. Code specific to the emulator should be kept out, as not all of the projects that depend on this need it.

Where possible, C++11/14 STL should be used instead of adding any code in here, and the code should be kept as small as possible (by reusing STL/etc). Third party dependencies should be kept to a minimum.

Target compilers:

  • MSVC++ 2013+
  • Clang 3.4+
  • GCC 4.8+.

Target platforms:

  • Windows 8+ (_win.cc suffix)
  • Mac OSX 10.9+ (_mac.cc suffix, falling back to _posix.cc)
  • Linux ? (_posix.cc suffix)

Avoid the use of platform-specific #ifdefs and instead try to put all platform-specific code in the appropriately suffixed cc files.