aboutsummaryrefslogtreecommitdiff
path: root/libbutl/win32-utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-09-22 23:32:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-09-22 23:32:28 +0200
commitc09cd7512491cee1e82c1ad8128ce9fd4bc3f79b (patch)
treea659ed768d849130ab5780a11b7f791a463a1a91 /libbutl/win32-utility.hxx
parent2a00871f07067f8f9e2de08bb9c8f50e1bf6a650 (diff)
Initial modularization with both Clang and VC hacks
Note: gave up on VC about half way though.
Diffstat (limited to 'libbutl/win32-utility.hxx')
-rw-r--r--libbutl/win32-utility.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/libbutl/win32-utility.hxx b/libbutl/win32-utility.hxx
index d9a3bcb..8c1e6d7 100644
--- a/libbutl/win32-utility.hxx
+++ b/libbutl/win32-utility.hxx
@@ -2,8 +2,7 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef LIBBUTL_WIN32_UTILITY_HXX
-#define LIBBUTL_WIN32_UTILITY_HXX
+#pragma once
// Use this header to include <windows.h> and a couple of Win32-specific
// utilities.
@@ -33,7 +32,11 @@
# endif
#endif
+#ifndef __cpp_lib_modules
#include <string>
+#else
+import std.core;
+#endif
#include <libbutl/export.hxx>
@@ -50,5 +53,3 @@ namespace butl
};
#endif // _WIN32
-
-#endif // LIBBUTL_WIN32_UTILITY_HXX