Browse Source

Win32 NOMINMAX

default_compile_flags
vector-of-bool 4 years ago
parent
commit
007d5dfd43
4 changed files with 5 additions and 0 deletions
  1. +1
    -0
      src/dds/proc.win.cpp
  2. +2
    -0
      src/dds/util/log.cpp
  3. +1
    -0
      src/dds/util/paths.win.cpp
  4. +1
    -0
      tools/msvc.jsonc

+ 1
- 0
src/dds/proc.win.cpp View File

#ifdef _WIN32 #ifdef _WIN32
#include "./proc.hpp" #include "./proc.hpp"


#include <fmt/core.h>
#include <neo/assert.hpp> #include <neo/assert.hpp>
#include <wil/resource.h> #include <wil/resource.h>



+ 2
- 0
src/dds/util/log.cpp View File



#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>


#include <ostream>

void dds::log::log_print(dds::log::level l, std::string_view msg) noexcept { void dds::log::log_print(dds::log::level l, std::string_view msg) noexcept {
static auto logger = [] { static auto logger = [] {
auto logger = spdlog::default_logger_raw(); auto logger = spdlog::default_logger_raw();

+ 1
- 0
src/dds/util/paths.win.cpp View File



#include <dds/util/log.hpp> #include <dds/util/log.hpp>


#include <cassert>
#include <cstdlib> #include <cstdlib>


using namespace dds; using namespace dds;

+ 1
- 0
tools/msvc.jsonc View File

"flags": [ "flags": [
"/Zc:preprocessor", "/Zc:preprocessor",
"/std:c++latest", "/std:c++latest",
"/DNOMINMAX",
], ],
"link_flags": [ "link_flags": [
"rpcrt4.lib", "rpcrt4.lib",

Loading…
Cancel
Save