aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/shared.h')
-rw-r--r--winsup/cygwin/shared.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/winsup/cygwin/shared.h b/winsup/cygwin/shared.h
index 036ca88..100eb2a 100644
--- a/winsup/cygwin/shared.h
+++ b/winsup/cygwin/shared.h
@@ -530,12 +530,13 @@ extern int __stdcall set_console_state_for_spawn ();
void __stdcall shared_init (void);
void __stdcall shared_terminate (void);
-/* This is for programs that want to access the shared data. */
-extern "C" class shared_info *cygwin_getshared (void);
-
char *__stdcall shared_name (const char *, int);
void *__stdcall open_shared (const char *name, HANDLE &shared_h, DWORD size, void *addr);
+extern "C" {
+/* This is for programs that want to access the shared data. */
+class shared_info *cygwin_getshared (void);
+
struct cygwin_version_info
{
unsigned short api_major;
@@ -545,8 +546,9 @@ struct cygwin_version_info
unsigned short shared_data;
unsigned short mount_registry;
const char *dll_build_date;
- const char shared_id[sizeof (CYGWIN_VERSION_DLL_IDENTIFIER) + 64];
+ char shared_id[sizeof (CYGWIN_VERSION_DLL_IDENTIFIER) + 64];
};
+}
extern cygwin_version_info cygwin_version;
extern const char *cygwin_version_strings;