feat(build): test enet links correctly
This commit is contained in:
parent
59bdc552e3
commit
f759fd3302
@ -1,6 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#define ENET_IMPLEMENTATION
|
||||
#include <enet.h>
|
||||
|
||||
int main() {
|
||||
printf("This is the farm fighter client!\n");
|
||||
return 0;
|
||||
if (enet_initialize() != 0) {
|
||||
printf("Error init enet\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
@ -1,8 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#define ENET_IMPLEMENTATION
|
||||
#include <enet.h>
|
||||
|
||||
int main() {
|
||||
printf("Server starting...\n");
|
||||
if (enet_initialize() != 0) {
|
||||
printf("Error init enet\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
printf("Press any key to exit...\n");
|
||||
scanf_s("0");
|
||||
return 0;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user