[enet-cvs] CVS: enet host.c,1.8,1.9 list.c,1.3,1.4 memory.c,1.3,1.4 packet.c,1.4,1.5 peer.c,1.9,1.10 protocol.c,1.11,1.12 unix.c,1.8,1.9 win32.c,1.7,1.8

Brian Hook (ENet CVS) enet-discuss@lists.puremagic.com
Sat, 8 Mar 2003 19:17:08 -0700


Update of /home/enet/cvsroot/enet
In directory sferik:/tmp/cvs-serv11000

Modified Files:
	host.c list.c memory.c packet.c peer.c protocol.c unix.c 
	win32.c 
Log Message:
Added ENET_API and ENET_DLL changes.  All functions flagged as ENET_API are considered parts of the public API.  The C source files define ENET_BUILDING_LIB before including the enet.h.  ENET_DLL is only relevant on Win32.

Index: host.c
===================================================================
RCS file: /home/enet/cvsroot/enet/host.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- host.c	2003/03/08 23:56:28	1.8
+++ host.c	2003/03/09 02:17:05	1.9
@@ -2,6 +2,7 @@
  @file host.c
  @brief ENet host management functions
 */
+#define ENET_BUILDING_LIB 1
 #include "memory.h"
 #include "enet.h"
 

Index: list.c
===================================================================
RCS file: /home/enet/cvsroot/enet/list.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- list.c	2003/03/08 23:56:28	1.3
+++ list.c	2003/03/09 02:17:05	1.4
@@ -2,6 +2,7 @@
  @file list.c
  @brief ENet linked list functions
 */
+#define ENET_BUILDING_LIB 1
 #include "list.h"
 
 /** 

Index: memory.c
===================================================================
RCS file: /home/enet/cvsroot/enet/memory.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- memory.c	2003/03/08 23:56:28	1.3
+++ memory.c	2003/03/09 02:17:05	1.4
@@ -2,6 +2,7 @@
  @file memory.c
  @brief ENet memory management functions
 */
+#define ENET_BUILDING_LIB 1
 #include "types.h"
 #include "memory.h"
 

Index: packet.c
===================================================================
RCS file: /home/enet/cvsroot/enet/packet.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- packet.c	2003/03/08 23:56:28	1.4
+++ packet.c	2003/03/09 02:17:05	1.5
@@ -2,6 +2,7 @@
  @file  packet.c
  @brief ENet packet management functions
 */
+#define ENET_BUILDING_LIB 1
 #include <string.h>
 #include "memory.h"
 #include "enet.h"

Index: peer.c
===================================================================
RCS file: /home/enet/cvsroot/enet/peer.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- peer.c	2003/03/08 23:56:28	1.9
+++ peer.c	2003/03/09 02:17:05	1.10
@@ -2,6 +2,7 @@
  @file  peer.c
  @brief ENet peer management functions
 */
+#define ENET_BUILDING_LIB 1
 #include "memory.h"
 #include "enet.h"
 

Index: protocol.c
===================================================================
RCS file: /home/enet/cvsroot/enet/protocol.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- protocol.c	2003/03/08 23:56:28	1.11
+++ protocol.c	2003/03/09 02:17:05	1.12
@@ -3,6 +3,7 @@
  @brief ENet protocol functions
 */
 #include <stdio.h>
+#define ENET_BUILDING_LIB 1
 #include "memory.h"
 #include "time.h"
 #include "enet.h"

Index: unix.c
===================================================================
RCS file: /home/enet/cvsroot/enet/unix.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- unix.c	2003/03/08 23:56:29	1.8
+++ unix.c	2003/03/09 02:17:05	1.9
@@ -13,6 +13,8 @@
 #include <string.h>
 #include <errno.h>
 #include <time.h>
+
+#define ENET_BUILDING_LIB 1
 #include "enet.h"
 
 #ifdef HAS_FCNTL

Index: win32.c
===================================================================
RCS file: /home/enet/cvsroot/enet/win32.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- win32.c	2003/03/08 23:56:29	1.7
+++ win32.c	2003/03/09 02:17:05	1.8
@@ -5,6 +5,7 @@
 #ifdef WIN32
 
 #include <time.h>
+#define ENET_BUILDING_LIB 1
 #include "enet.h"
 
 static enet_uint32 timeBase = 0;