Skip to content

Commit 8c66cfe

Browse files
committed
Tweak handy self compile message
Now friendlier on linux
1 parent 1cc98f1 commit 8c66cfe

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

Server/version.h

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,13 @@
9696
// Handy self compile message
9797
#ifndef MTA_DM_CONNECT_FROM_PUBLIC
9898
#if defined(SHOW_SELF_COMPILE_WARNING) && !defined(CI_BUILD)
99-
#ifdef WIN32
100-
#pragma message("-------------------------------------------------------------------------")
101-
#pragma message("MTASA_VERSION_TYPE is not set to VERSION_TYPE_RELEASE")
102-
#pragma message("Server will not work with release clients")
103-
#pragma message("-------------------------------------------------------------------------")
104-
#pragma message("If you want the server to work with release clients,")
105-
#pragma message("set MTASA_VERSION_TYPE to VERSION_TYPE_RELEASE in MTA10_Server/version.h")
106-
#pragma message("-------------------------------------------------------------------------")
107-
#else
108-
#pragma message ("-------------------------------------------------------------------------")
109-
#warning "MTASA_VERSION_TYPE is not set to VERSION_TYPE_RELEASE"
110-
#warning "Server will not work with release clients"
111-
#warning "-------------------------------------------------------------------------"
112-
#warning "If you want the server to work with release clients,"
113-
#warning "set MTASA_VERSION_TYPE to VERSION_TYPE_RELEASE in MTA10_Server/version.h"
114-
#warning "-------------------------------------------------------------------------"
115-
#endif
99+
#pragma message("\n\
100+
----------------------------------------------------------------------\n\
101+
MTASA_VERSION_TYPE is not set to VERSION_TYPE_RELEASE\n\
102+
Server will not work with release clients\n\
103+
-------------------------------------------------------------------------\n\
104+
If you want the server to work with release clients\n\
105+
set MTASA_VERSION_TYPE to VERSION_TYPE_RELEASE in MTA10_Server/version.h\n\
106+
-------------------------------------------------------------------------")
116107
#endif
117108
#endif

0 commit comments

Comments
 (0)