Skip to content

Commit

Permalink
make getline library optional
Browse files Browse the repository at this point in the history
  • Loading branch information
LizzyFleckenstein03 committed Aug 3, 2024
1 parent 72c090d commit cf6be05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ deps = [
dependency('perlin'),
dependency('dragonnet'),
dependency('dragonstd'),
dependency('getline'),
dependency('zlib'),
]

if not cc.has_function('getline')
deps += dependency('getline')
endif

common_lib = static_library('dragonblocks',
sources: [
vcs_tag(
Expand Down
1 change: 0 additions & 1 deletion src/client/mesh.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <dragonstd/tree.h>
#include <getline.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion src/client/model.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <dragonstd/tree.h>
#include <getline.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
Expand Down
1 change: 0 additions & 1 deletion src/server/schematic.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <getline.h>
#include <stdio.h>
#include <stdlib.h>
#include "common/terrain.h"
Expand Down

0 comments on commit cf6be05

Please sign in to comment.