Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-07-20 08:01:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-20 08:01:03 +0300
commitfe2f43a15c648e13fbc5fa4ba24cea41b3671427 (patch)
treeb5f6ec72ba191e8b9b9ec802426e73bd247b3705 /source/blender/io/gpencil
parent59eb71afa1d11ab0a1d5f741debc6989ec511ff9 (diff)
Cleanup: use '#if 0' for disabling multiple lines
Diffstat (limited to 'source/blender/io/gpencil')
-rw-r--r--source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc25
1 files changed, 13 insertions, 12 deletions
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc b/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
index 3b20ac9f110..82f8444d43e 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
@@ -91,19 +91,20 @@ bool GpencilExporterPDF::write()
{
/* Support unicode character paths on Windows. */
HPDF_STATUS res = 0;
- /* TODO: It looks libharu does not support unicode. */
- //#ifdef WIN32
- // char filename_cstr[FILE_MAX];
- // BLI_strncpy(filename_cstr, filename_, FILE_MAX);
- //
- // UTF16_ENCODE(filename_cstr);
- // std::wstring wstr(filename_cstr_16);
- // res = HPDF_SaveToFile(pdf_, wstr.c_str());
- //
- // UTF16_UN_ENCODE(filename_cstr);
- //#else
+
+ /* TODO: It looks `libharu` does not support unicode. */
+#if 0 /* `ifdef WIN32` */
+ char filename_cstr[FILE_MAX];
+ BLI_strncpy(filename_cstr, filename_, FILE_MAX);
+
+ UTF16_ENCODE(filename_cstr);
+ std::wstring wstr(filename_cstr_16);
+ res = HPDF_SaveToFile(pdf_, wstr.c_str());
+
+ UTF16_UN_ENCODE(filename_cstr);
+#else
res = HPDF_SaveToFile(pdf_, filename_);
- //#endif
+#endif
return (res == 0) ? true : false;
}