code format
This commit is contained in:
parent
e970b2f661
commit
a32edb4eec
@ -13,6 +13,7 @@ ReflowComments: true
|
||||
RemoveBracesLLVM: true
|
||||
SortIncludes: CaseInsensitive
|
||||
TabWidth: 2
|
||||
ContinuationIndentWidth: 2
|
||||
UseTab: AlignWithSpaces
|
||||
|
||||
# ex:se ft=yaml
|
||||
|
4
Makefile
4
Makefile
@ -1,5 +1,5 @@
|
||||
# Options (e.g. `CFLAGS=-DUSE_ARGP make`)
|
||||
# USE_ARGP: use `argp` for argument parsing.
|
||||
# Options (e.g. `CFLAGS=-DHAVE_ARGP make`)
|
||||
# HAVE_ARGP: use `argp` for argument parsing.
|
||||
|
||||
VERSION ?= 9.0.1
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
* Other modifications by Lexxy Fox.
|
||||
*/
|
||||
|
||||
#ifdef USE_ARGP
|
||||
#ifdef HAVE_ARGP
|
||||
#include <argp.h>
|
||||
#endif
|
||||
#include <GL/gl.h>
|
||||
@ -378,8 +378,7 @@ static void visible(int vis) {
|
||||
|
||||
static char *window_title = "Gears";
|
||||
|
||||
#ifdef USE_ARGP
|
||||
|
||||
#ifdef HAVE_ARGP
|
||||
static const struct argp_option options[] = {
|
||||
{"info", 256, 0, 0, "Display OpenGL renderer information"},
|
||||
{"exit", 257, 0, 0, "Automatically exit after 30 seconds"},
|
||||
@ -436,7 +435,7 @@ static void parse_args(int argc, char *argv[]) {
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
glutInit(&argc, argv);
|
||||
#ifdef USE_ARGP
|
||||
#ifdef HAVE_ARGP
|
||||
argp_parse(&argp, argc, argv, ARGP_LONG_ONLY, 0, 0);
|
||||
#else
|
||||
parse_args(argc, argv);
|
||||
|
Loading…
Reference in New Issue
Block a user