Browse Source

[frontend] fix Simpleini warnings SI_NO_CONVERSION macro being redefined when provided by cmdline (freebsd, linux, etc)

Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/2877/head
lizzie 3 months ago
parent
commit
0a4080f544
No known key found for this signature in database GPG Key ID: 287378CADCAB13
  1. 7
      src/frontend_common/config.h

7
src/frontend_common/config.h

@ -7,7 +7,12 @@
#include <string>
#include "common/settings.h"
#define SI_NO_CONVERSION
// May be defined on command line by system provided packages (FreeBSD devel/simpleini)
// but if building from source, it will not be defined, so just do it conditionally.
// Should probably define on CMake anyways but eh
#ifndef SI_NO_CONVERSION
# define SI_NO_CONVERSION 1
#endif
#include <SimpleIni.h>
#include <boost/algorithm/string/replace.hpp>

Loading…
Cancel
Save