mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-03 02:20:39 +08:00
Fixed some duplicate macro definition warnings
This commit is contained in:
parent
649c108357
commit
dd88e0c5df
@ -2,8 +2,12 @@
|
|||||||
// Why?
|
// Why?
|
||||||
#define _WIN32_WINNT 0x0502
|
#define _WIN32_WINNT 0x0502
|
||||||
// The standard Windows includes.
|
// The standard Windows includes.
|
||||||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif // WIN32_LEAN_AND_MEAN
|
||||||
|
#ifndef NOMINMAX
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
|
#endif // NOMINMAX
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#ifdef SLIC3R_GUI
|
#ifdef SLIC3R_GUI
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
// Why?
|
// Why?
|
||||||
#define _WIN32_WINNT 0x0502
|
#define _WIN32_WINNT 0x0502
|
||||||
// The standard Windows includes.
|
// The standard Windows includes.
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
#define NOMINMAX
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif // WIN32_LEAN_AND_MEAN
|
||||||
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif // NOMINMAX
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef SLIC3R_GUI
|
#ifdef SLIC3R_GUI
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
@ -1989,7 +1989,7 @@ public:
|
|||||||
|
|
||||||
void set_enum_values(GUIType gui_type, const std::initializer_list<std::string_view> il) {
|
void set_enum_values(GUIType gui_type, const std::initializer_list<std::string_view> il) {
|
||||||
this->enum_def_new();
|
this->enum_def_new();
|
||||||
assert(gui_type == GUIType::i_enum_open || gui_type == GUIType::f_enum_open || gui_type == GUIType::select_open);
|
assert(is_gui_type_enum_open(gui_type));
|
||||||
this->gui_type = gui_type;
|
this->gui_type = gui_type;
|
||||||
enum_def->set_values(il);
|
enum_def->set_values(il);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user