diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-22 23:32:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-22 23:32:28 +0200 |
commit | c09cd7512491cee1e82c1ad8128ce9fd4bc3f79b (patch) | |
tree | a659ed768d849130ab5780a11b7f791a463a1a91 /libbutl/export.hxx | |
parent | 2a00871f07067f8f9e2de08bb9c8f50e1bf6a650 (diff) |
Initial modularization with both Clang and VC hacks
Note: gave up on VC about half way though.
Diffstat (limited to 'libbutl/export.hxx')
-rw-r--r-- | libbutl/export.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libbutl/export.hxx b/libbutl/export.hxx index 5c59539..82e06cb 100644 --- a/libbutl/export.hxx +++ b/libbutl/export.hxx @@ -2,12 +2,11 @@ // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#ifndef LIBBUTL_EXPORT_HXX -#define LIBBUTL_EXPORT_HXX +#pragma once -// If we are compiling a module interface, setup the module export. +// If modules are available, setup the module export. // -#ifdef LIBBUTL_MODULE_BUILD +#ifdef __cpp_modules # define LIBBUTL_MODEXPORT export #else # define LIBBUTL_MODEXPORT @@ -45,5 +44,3 @@ // # define LIBBUTL_SYMEXPORT // Using static or shared. #endif - -#endif // LIBBUTL_EXPORT_HXX |