summaryrefslogtreecommitdiff
path: root/examples/Connection/blocking
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /examples/Connection/blocking
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'examples/Connection/blocking')
-rw-r--r--examples/Connection/blocking/SPIPE-acceptor.h7
-rw-r--r--examples/Connection/blocking/SPIPE-connector.h11
2 files changed, 14 insertions, 4 deletions
diff --git a/examples/Connection/blocking/SPIPE-acceptor.h b/examples/Connection/blocking/SPIPE-acceptor.h
index 6428d6ccf55..84253f2e37c 100644
--- a/examples/Connection/blocking/SPIPE-acceptor.h
+++ b/examples/Connection/blocking/SPIPE-acceptor.h
@@ -1,10 +1,15 @@
/* -*- C++ -*- */
// $Id$
-#if !defined (SP_ACCEPTOR_H)
+#ifndef SP_ACCEPTOR_H
#define SP_ACCEPTOR_H
#include "ace/Svc_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "ace/Acceptor.h"
#include "ace/SPIPE_Stream.h"
#include "ace/SPIPE_Acceptor.h"
diff --git a/examples/Connection/blocking/SPIPE-connector.h b/examples/Connection/blocking/SPIPE-connector.h
index 3bed82195a7..d9ea2d32629 100644
--- a/examples/Connection/blocking/SPIPE-connector.h
+++ b/examples/Connection/blocking/SPIPE-connector.h
@@ -1,10 +1,15 @@
/* -*- C++ -*- */
// $Id$
-#if !defined (SP_CONNECTOR_H)
+#ifndef SP_CONNECTOR_H
#define SP_CONNECTOR_H
#include "ace/Svc_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "ace/SPIPE_Stream.h"
#include "ace/Connector.h"
#include "ace/SPIPE_Connector.h"
@@ -26,7 +31,7 @@ public:
// = Demultiplexing hooks.
virtual int handle_input (ACE_HANDLE);
virtual int handle_close (ACE_HANDLE handle = ACE_INVALID_HANDLE,
- ACE_Reactor_Mask mask = ACE_Event_Handler::ALL_EVENTS_MASK);
+ ACE_Reactor_Mask mask = ACE_Event_Handler::ALL_EVENTS_MASK);
virtual ACE_HANDLE get_handle (void) const;
@@ -53,7 +58,7 @@ public:
virtual int svc (void);
// Run the svc.
-
+
virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask);
// Report connection errors.