summaryrefslogtreecommitdiff
path: root/vio/vio-global.h
diff options
context:
space:
mode:
Diffstat (limited to 'vio/vio-global.h')
-rw-r--r--vio/vio-global.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/vio/vio-global.h b/vio/vio-global.h
new file mode 100644
index 00000000000..0c3d279695d
--- /dev/null
+++ b/vio/vio-global.h
@@ -0,0 +1,33 @@
+#include <global.h>
+
+#if !defined(VIO_HAVE_OPENSSL) && defined(HAVE_OPENSSL)
+#define VIO_HAVE_OPENSSL HAVE_OPENSSL
+#endif /* !defined(VIO_HAVE_OPENSSL) && defined(HAVE_OPENSSL) */
+
+#include "viotypes.h"
+#include "Vio.h"
+#include "VioAcceptorFd.h"
+#include "VioFd.h"
+#include "VioPipe.h"
+#include "VioSocket.h"
+#ifdef VIO_HAVE_OPENSSL
+#include "VioSSL.h"
+#include "VioSSLFactoriesFd.h"
+#endif /* VIO_HAVE_OPENSSL */
+
+
+#if VIO_HAVE_NAMESPACES
+#define VIO_STD_NS std
+#define VIO_STD_NS_USING using namespace std;
+#define VIO_NS VirtualIO
+#define VIO_NS_BEGIN namespace VIO_NS {
+#define VIO_NS_END }
+#define VIO_NS_USING using namespace VIO_NS;
+#else
+#define VIO_STD_NS
+#define VIO_STD_NS_USING
+#define VIO_NS
+#define VIO_NS_BEGIN
+#define VIO_NS_END
+#define VIO_NS_USING
+#endif