From 11c9c60a14a5529f50b50bc06773d8be62fd3da6 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[email protected]>
Date: Tue, 28 Dec 2021 23:18:52 +0530
Subject: [PATCH] doc: Fix example for all Win32 compiler

dllexport and dllimport attributes are available with all
compilers targeting Win32 platform. In general, Win32
platform can be decided with _WIN32 instead of _MSC_VER
because the later one is for MSVC / Visual Studio.

Signed-off-by: Biswapriyo Nath <[email protected]>
---
 doc/lib-symbol-visibility.texi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/lib-symbol-visibility.texi b/doc/lib-symbol-visibility.texi
index 2bffbb3..1f2052b 100644
--- a/doc/lib-symbol-visibility.texi
+++ b/doc/lib-symbol-visibility.texi
@@ -146,14 +146,14 @@ other libraries, you continue to use a prefix specific to 
your library
 for all non-static variables and functions and for all C++ classes in
 your library.
 
-Note about other compilers: MSVC support can be added easily, by extending
-the definition of the macro mentioned above, to something like this:
+Note about other compilers: Microsoft Windows support can be added easily, by
+extending the definition of the macro mentioned above, to something like this:
 @smallexample
 #if BUILDING_LIBFOO && HAVE_VISIBILITY
 #define LIBFOO_DLL_EXPORTED __attribute__((__visibility__("default")))
-#elif BUILDING_LIBFOO && defined _MSC_VER
+#elif BUILDING_LIBFOO && defined _WIN32
 #define LIBFOO_DLL_EXPORTED __declspec(dllexport)
-#elif defined _MSC_VER
+#elif defined _WIN32
 #define LIBFOO_DLL_EXPORTED __declspec(dllimport)
 #else
 #define LIBFOO_DLL_EXPORTED
-- 
2.34.1

Reply via email to