summaryrefslogtreecommitdiff
path: root/network_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'network_server.h')
-rw-r--r--network_server.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/network_server.h b/network_server.h
index 4b98bf31b..66ea4704e 100644
--- a/network_server.h
+++ b/network_server.h
@@ -28,6 +28,12 @@ static inline const char* GetPlayerIP(const NetworkClientInfo* ci)
return inet_ntoa(addr);
}
+#else /* ENABLE_NETWORK */
+/* Network function stubs when networking is disabled */
+
+static inline void NetworkServerMonthlyLoop(void) {}
+static inline void NetworkServerYearlyLoop(void) {}
+
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_SERVER_H */