Add missing include config.h

When config.h is not included, BUILD_DEBUG is not set.
This commit is contained in:
Romain Vimont 2018-08-15 16:45:22 +02:00
parent 92d1aff85f
commit 4527be4cde
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,7 @@
#include "controller.h" #include "controller.h"
#include <SDL2/SDL_assert.h>
#include "config.h"
#include "lockutil.h" #include "lockutil.h"
#include "log.h" #include "log.h"
@ -66,7 +68,7 @@ static int run_controller(void *data) {
} }
struct control_event event; struct control_event event;
#ifdef BUILD_DEBUG #ifdef BUILD_DEBUG
bool non_empty = control_event_queue_take(&controller->queue, &event); SDL_bool non_empty = control_event_queue_take(&controller->queue, &event);
SDL_assert(non_empty); SDL_assert(non_empty);
#else #else
control_event_queue_take(&controller->queue, &event); control_event_queue_take(&controller->queue, &event);

View file

@ -1,6 +1,8 @@
#include "file_handler.h" #include "file_handler.h"
#include <string.h> #include <string.h>
#include <SDL2/SDL_assert.h>
#include "config.h"
#include "command.h" #include "command.h"
#include "device.h" #include "device.h"
#include "lockutil.h" #include "lockutil.h"
@ -166,7 +168,7 @@ static int run_file_handler(void *data) {
} }
struct request *req; struct request *req;
#ifdef BUILD_DEBUG #ifdef BUILD_DEBUG
bool non_empty = request_queue_take(&file_handler->queue, &req); SDL_bool non_empty = request_queue_take(&file_handler->queue, &req);
SDL_assert(non_empty); SDL_assert(non_empty);
#else #else
request_queue_take(&file_handler->queue, &req); request_queue_take(&file_handler->queue, &req);