Skip to content

Commit 85400fa

Browse files
author
Sebastiano Merlino
committed
Fixed headers lacking compile protect
1 parent b6fd4bf commit 85400fa

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

src/httpserver/details/cache_entry.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
USA
1919
*/
2020

21+
#if !defined (_HTTPSERVER_HPP_INSIDE_) && !defined (HTTPSERVER_COMPILATION)
22+
#error "Only <httpserver.hpp> or <httpserverpp> can be included directly."
23+
#endif
24+
2125
#ifndef _CACHE_ENTRY_HPP_
2226
#define _CACHE_ENTRY_HPP_
2327

src/httpserver/details/comet_manager.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
USA
1919
*/
2020

21+
#if !defined (_HTTPSERVER_HPP_INSIDE_) && !defined (HTTPSERVER_COMPILATION)
22+
#error "Only <httpserver.hpp> or <httpserverpp> can be included directly."
23+
#endif
24+
25+
#ifndef _COMET_MANAGER_HPP_
26+
#define _COMET_MANAGER_HPP_
27+
2128
#include <pthread.h>
2229
#include <vector>
2330
#include <set>
@@ -95,3 +102,5 @@ class comet_manager
95102
} //details
96103

97104
} //httpserver
105+
106+
#endif //_COMET_MANAGER_HPP_

src/httpserver/details/http_response_ptr.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
USA
1919
*/
2020

21+
#if !defined (_HTTPSERVER_HPP_INSIDE_) && !defined (HTTPSERVER_COMPILATION)
22+
#error "Only <httpserver.hpp> or <httpserverpp> can be included directly."
23+
#endif
24+
2125
#ifndef _HTTP_RESPONSE_PTR_HPP_
2226
#define _HTTP_RESPONSE_PTR_HPP_
2327

src/httpserver/details/modded_request.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
USA
1919
*/
2020

21+
#if !defined (_HTTPSERVER_HPP_INSIDE_) && !defined (HTTPSERVER_COMPILATION)
22+
#error "Only <httpserver.hpp> or <httpserverpp> can be included directly."
23+
#endif
24+
2125
#ifndef _MODDED_REQUEST_HPP_
2226
#define _MODDED_REQUEST_HPP_
2327

0 commit comments

Comments
 (0)