[PATCH 2/2] ntdll: Make wine_build a hidden symbol.
Zebediah Figura
zfigura at codeweavers.com
Thu Aug 12 19:48:09 CDT 2021
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/ntdll/unix/loader.c | 1 -
dlls/ntdll/unix/system.c | 1 -
dlls/ntdll/unix/unix_private.h | 2 ++
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c
index 7d9635db535..5edc845009f 100644
--- a/dlls/ntdll/unix/loader.c
+++ b/dlls/ntdll/unix/loader.c
@@ -2220,7 +2220,6 @@ static void check_command_line( int argc, char *argv[] )
}
if (!strcmp( argv[1], "--version" ))
{
- extern const char wine_build[];
printf( "%s\n", wine_build );
exit(0);
}
diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c
index 94961ed524e..cc4b283ffc7 100644
--- a/dlls/ntdll/unix/system.c
+++ b/dlls/ntdll/unix/system.c
@@ -2886,7 +2886,6 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
case SystemWineVersionInformation: /* 1000 */
{
static const char version[] = PACKAGE_VERSION;
- extern const char wine_build[];
struct utsname buf;
uname( &buf );
diff --git a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h
index 9c6c323298c..18c58a6431e 100644
--- a/dlls/ntdll/unix/unix_private.h
+++ b/dlls/ntdll/unix/unix_private.h
@@ -116,6 +116,8 @@ extern NTSTATUS CDECL fast_wait_cv( RTL_CONDITION_VARIABLE *variable, const void
extern NTSTATUS CDECL unwind_builtin_dll( ULONG type, struct _DISPATCHER_CONTEXT *dispatch,
CONTEXT *context ) DECLSPEC_HIDDEN;
+extern const char wine_build[] DECLSPEC_HIDDEN;
+
extern const char *home_dir DECLSPEC_HIDDEN;
extern const char *data_dir DECLSPEC_HIDDEN;
extern const char *build_dir DECLSPEC_HIDDEN;
--
2.32.0
More information about the wine-devel
mailing list