summaryrefslogtreecommitdiffstats
path: root/gl/sockets.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/sockets.h')
-rw-r--r--gl/sockets.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/gl/sockets.h b/gl/sockets.h
index a0b1601..55077ae 100644
--- a/gl/sockets.h
+++ b/gl/sockets.h
@@ -1,6 +1,6 @@
1/* sockets.h - wrappers for Windows socket functions 1/* sockets.h - wrappers for Windows socket functions
2 2
3 Copyright (C) 2008-2023 Free Software Foundation, Inc. 3 Copyright (C) 2008-2024 Free Software Foundation, Inc.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
@@ -20,6 +20,15 @@
20#ifndef SOCKETS_H 20#ifndef SOCKETS_H
21#define SOCKETS_H 1 21#define SOCKETS_H 1
22 22
23/* This file uses _GL_ATTRIBUTE_CONST. */
24#if !_GL_CONFIG_H_INCLUDED
25 #error "Please include config.h first."
26#endif
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
23#define SOCKETS_1_0 0x0001 32#define SOCKETS_1_0 0x0001
24#define SOCKETS_1_1 0x0101 33#define SOCKETS_1_1 0x0101
25#define SOCKETS_2_0 0x0002 34#define SOCKETS_2_0 0x0002
@@ -38,6 +47,11 @@ int gl_sockets_cleanup (void)
38#endif 47#endif
39 ; 48 ;
40 49
50#ifdef __cplusplus
51}
52#endif
53
54
41/* This function is useful it you create a socket using gnulib's 55/* This function is useful it you create a socket using gnulib's
42 Winsock wrappers but needs to pass on the socket handle to some 56 Winsock wrappers but needs to pass on the socket handle to some
43 other library that only accepts sockets. */ 57 other library that only accepts sockets. */