Files
OrcaSlicer/tests/sla_print/sla_print_tests_main.cpp
T
Hanif Koh 0a30cfe6b0 Remove Unused Project Includes and Forward-Declare Where a Type Is Only Referenced
Generated with include-what-you-use and applied conservatively. Only OrcaSlicer's own headers, the ones under src/ and tests/, are removed or forward-declared; standard-library and third-party includes are left alone. An include is removed only when both the Release and the Debug configuration leave it unused, never from inside a conditional block, and never from a file with platform-specific blocks, which only gain includes. Files whose only use of a header sits behind a feature or debug macro (libvgcode's OpenGL ES and marker code, the ARACHNE/TESTS_EXPORT_SVGS debug output) keep their includes.

clonable_ptr.hpp gains #pragma once; it had no include guard and was only safe while Config.hpp was its sole includer.
2026-10-03 22:45:55 +08:00

11 lines
712 B
C++

#define NANOSVG_IMPLEMENTATION
#include "nanosvg/nanosvg.h"
#define NANOSVGRAST_IMPLEMENTATION
#include "nanosvg/nanosvgrast.h"
// Without the above, you get some errors like these when linking
// usr/bin/ld: src/libslic3r/RelWithDebInfo/liblibslic3r.a(svg.cpp.o): in function `Slic3r::get_svg_profile(char const*, std::vector<Slic3r::Element_Info, std::allocator<Slic3r::Element_Info> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
// /opt/prg/OrcaSlicer/src/libslic3r/Format/svg.cpp:128:(.text+0x114e): undefined reference to `nsvgParseFromFile'
// /usr/bin/ld: /opt/prg/OrcaSlicer/src/libslic3r/Format/svg.cpp:299:(.text+0x34d6): undefined reference to `nsvgDelete'