aboutsummaryrefslogtreecommitdiff
path: root/src/globals.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-29 18:53:45 -0400
committerFranklin Wei <git@fwei.tk>2015-05-29 18:53:45 -0400
commita03e48a871f775901c0946f3e4eb34f41a7e5e1a (patch)
tree13f9f894665a38712c03079e7413b0562181207c /src/globals.h
parent6dd684aa477b33b9e62c4b2485c92150ecb35ab1 (diff)
downloadmarket-sim-a03e48a871f775901c0946f3e4eb34f41a7e5e1a.zip
market-sim-a03e48a871f775901c0946f3e4eb34f41a7e5e1a.tar.gz
market-sim-a03e48a871f775901c0946f3e4eb34f41a7e5e1a.tar.bz2
market-sim-a03e48a871f775901c0946f3e4eb34f41a7e5e1a.tar.xz
enable building without curses
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h
index efddce3..58fc0cd 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1,24 +1,31 @@
#ifndef _MARKET_SIM_H_
#define _MARKET_SIM_H_
+//#define WITHOUT_CURSES
+
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <signal.h>
+#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stdarg.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <curl/curl.h>
+
+#ifndef WITHOUT_CURSES
#include <curses.h>
+#endif
#define ARRAYLEN(x) (sizeof(x) / sizeof(x[0]))
+#define PROGRAM_NAME "market-sim"
+
/* VERSION_INFO is supplied by the compiler */
#define PROGRAM_VERSION "v0.3 (" VERSION_INFO ")"