aboutsummaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-07-21 11:02:33 +0200
committerMax Kellermann <max@duempel.org>2015-07-21 11:57:53 +0200
commit5bdbd74d591e87e327835faf71741eacab3ce00f (patch)
tree2f9f94bb825163077ee37f50df41bdec3dd27a05 /src/net
parente621c2427082970329ba0364cff8a9fceb0a0856 (diff)
downloadmpd-5bdbd74d591e87e327835faf71741eacab3ce00f.tar.gz
mpd-5bdbd74d591e87e327835faf71741eacab3ce00f.tar.xz
mpd-5bdbd74d591e87e327835faf71741eacab3ce00f.zip
net: add header Features.hxx
For improved portability of the net library to projects without autoconf.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/Features.hxx27
-rw-r--r--src/net/StaticSocketAddress.hxx1
2 files changed, 28 insertions, 0 deletions
diff --git a/src/net/Features.hxx b/src/net/Features.hxx
new file mode 100644
index 000000000..05dcc5659
--- /dev/null
+++ b/src/net/Features.hxx
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2003-2015 The Music Player Daemon Project
+ * http://www.musicpd.org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef NET_FEATURES_HXX
+#define NET_FEATURES_HXX
+
+/* feature macros are defined in config.h, and this header verifies
+ that it has been included earlier */
+#include "check.h"
+
+#endif
diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx
index 475c323e0..4cf294c1e 100644
--- a/src/net/StaticSocketAddress.hxx
+++ b/src/net/StaticSocketAddress.hxx
@@ -31,6 +31,7 @@
#define STATIC_SOCKET_ADDRESS_HXX
#include "SocketAddress.hxx"
+#include "Features.hxx"
#include "Compiler.h"
#include <assert.h>