common: use stdbool in threads.c, log.c so cmdlib isn't needed
The only thing used by log.c was the qboolean definition, so just use stdbool internally instead. Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
bf9bc549d2
commit
bbbb3ff859
|
|
@ -21,15 +21,15 @@
|
|||
* common/log.c
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <common/log.h>
|
||||
#include <common/cmdlib.h>
|
||||
#include <common/threads.h>
|
||||
|
||||
static FILE *logfile;
|
||||
static qboolean log_ok;
|
||||
static _Bool log_ok;
|
||||
|
||||
void
|
||||
init_log(const char *filename)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,15 @@
|
|||
/* common/threads.c */
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <common/cmdlib.h>
|
||||
#include <common/log.h>
|
||||
#include <common/threads.h>
|
||||
|
||||
/* Make the locks no-ops if we aren't running threads */
|
||||
static qboolean threads_active = false;
|
||||
static _Bool threads_active = false;
|
||||
|
||||
static int dispatch;
|
||||
static int workcount;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@
|
|||
#define __COMMON_LOG_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <common/cmdlib.h>
|
||||
|
||||
void init_log(const char *filename);
|
||||
void close_log();
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
#ifndef __COMMON_THREADS_H__
|
||||
#define __COMMON_THREADS_H__
|
||||
|
||||
#include <common/cmdlib.h>
|
||||
|
||||
extern int numthreads;
|
||||
|
||||
int GetDefaultThreads(void);
|
||||
|
|
|
|||
Loading…
Reference in New Issue