Commit c996f4ac3379f44cd14fa38049ed45031498eb84

Authored by Jay Berkenbilt
1 parent aec45e2c

Don't include <cwchar> if not building with wchar

Showing 1 changed file with 8 additions and 6 deletions
libqpdf/QUtil.cc
@@ -21,14 +21,16 @@ @@ -21,14 +21,16 @@
21 #include <string.h> 21 #include <string.h>
22 #include <fcntl.h> 22 #include <fcntl.h>
23 #include <memory> 23 #include <memory>
24 -#include <cwchar> 24 +#ifndef QPDF_NO_WCHAR_T
  25 +# include <cwchar>
  26 +#endif
25 #ifdef _WIN32 27 #ifdef _WIN32
26 -#include <windows.h>  
27 -#include <direct.h>  
28 -#include <io.h> 28 +# include <windows.h>
  29 +# include <direct.h>
  30 +# include <io.h>
29 #else 31 #else
30 -#include <unistd.h>  
31 -#include <sys/stat.h> 32 +# include <unistd.h>
  33 +# include <sys/stat.h>
32 #endif 34 #endif
33 35
34 // First element is 128 36 // First element is 128