From e4a30d7bd70243c83f267f2b010015ea0ef6f443 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 18 Sep 2002 16:42:02 +0000 Subject: [PATCH] Restrict Win32 API replacements from interfering with 3rd-party builders of add-ons or any other consumer of win32's os.h. PR 12779. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96875 13f79535-47bb-0310-9956-ffa450edef68 --- os/win32/os.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/os/win32/os.h b/os/win32/os.h index a05b42c0e85..f7c38a3f5c7 100644 --- a/os/win32/os.h +++ b/os/win32/os.h @@ -98,7 +98,10 @@ AP_DECLARE_DATA extern int real_exit_code; : ((real_exit_code = 0), (status)))) -/* Defined in util_win32.c +#ifdef AP_DECLARE_EXPORT + +/* Defined in util_win32.c and available only to the core module for + * win32 MPM design. */ AP_DECLARE(apr_status_t) ap_os_proc_filepath(char **binpath, apr_pool_t *p); @@ -153,6 +156,7 @@ AP_DECLARE_LATE_DLL_FUNC(AP_DLL_WINBASEAPI, DWORD, WINAPI, RegisterServiceProces (dwProcessId, dwType)); #define RegisterServiceProcess ap_winapi_RegisterServiceProcess +#endif /* def AP_DECLARE_EXPORT */ #ifdef __cplusplus } -- 2.47.3