define SERVER

isolation_bkp/dynres
Dominik Madarász 2021-05-04 02:01:31 +02:00
parent cf955ef3fb
commit 5b2db7cd78
2 changed files with 4 additions and 0 deletions

View File

@ -17,5 +17,6 @@ add_executable(eco2d-server
) )
include_directories(header modules) include_directories(header modules)
target_compile_definitions(eco2d-server PRIVATE SERVER)
target_link_libraries(eco2d-server eco2d-common eco2d-modules flecs-bundle cwpack) target_link_libraries(eco2d-server eco2d-common eco2d-modules flecs-bundle cwpack)
link_system_libs(eco2d-server) link_system_libs(eco2d-server)

View File

@ -5,7 +5,10 @@
#define PKT_HEADER_ELEMENTS 2 #define PKT_HEADER_ELEMENTS 2
pkt_handler pkt_handlers[] = { pkt_handler pkt_handlers[] = {
#ifdef SERVER
#else
{.id = MSG_ID_01_WELCOME, .handler = pkt_01_welcome_handler}, {.id = MSG_ID_01_WELCOME, .handler = pkt_01_welcome_handler},
#endif
}; };
uint8_t pkt_buffer[PKT_BUFSIZ]; uint8_t pkt_buffer[PKT_BUFSIZ];