mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 05:44:16 +00:00
add -fno-common flag for compilation (fixes #192)
This commit is contained in:
parent
9e02b7e067
commit
5ff5113f28
7 changed files with 8 additions and 5 deletions
2
makefile
2
makefile
|
@ -1,4 +1,4 @@
|
|||
CFLAGS = -std=c99 -Wall -DNDEBUG -Ofast -ffast-math -fvisibility=hidden
|
||||
CFLAGS = -std=c99 -Wall -DNDEBUG -Ofast -ffast-math -fvisibility=hidden -fno-common
|
||||
LIBS = -framework Carbon -framework Cocoa -F/System/Library/PrivateFrameworks -framework SkyLight
|
||||
ODIR = bin
|
||||
SRC = src
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#pragma once
|
||||
#include "misc/helpers.h"
|
||||
|
||||
extern struct bar_manager g_bar_manager;
|
||||
|
||||
#define ANIMATE(f, o, p, t) \
|
||||
{\
|
||||
if (g_bar_manager.animator.duration > 0) { \
|
||||
|
|
|
@ -42,7 +42,6 @@ struct bar_manager {
|
|||
struct animator animator;
|
||||
};
|
||||
|
||||
struct bar_manager g_bar_manager;
|
||||
void bar_manager_init(struct bar_manager* bar_manager);
|
||||
void bar_manager_begin(struct bar_manager* bar_manager);
|
||||
void bar_manager_reset(struct bar_manager* bar_manager);
|
||||
|
|
|
@ -36,7 +36,6 @@ struct event_loop {
|
|||
#endif
|
||||
};
|
||||
|
||||
struct event_loop g_event_loop;
|
||||
bool event_loop_init(struct event_loop *event_loop);
|
||||
bool event_loop_begin(struct event_loop *event_loop);
|
||||
bool event_loop_end(struct event_loop *event_loop);
|
||||
|
|
|
@ -31,7 +31,6 @@ struct mach_server {
|
|||
mach_handler* handler;
|
||||
};
|
||||
|
||||
struct mach_server g_mach_server;
|
||||
bool mach_server_begin(struct mach_server* mach_server, mach_handler handler);
|
||||
bool mach_send_message(mach_port_t port, char* message, uint32_t len,
|
||||
bool await_response);
|
||||
|
|
|
@ -24,6 +24,11 @@ extern int RunApplicationEventLoop(void);
|
|||
|
||||
int g_connection;
|
||||
|
||||
struct bar_manager g_bar_manager;
|
||||
struct event_loop g_event_loop;
|
||||
struct mach_server g_mach_server;
|
||||
void *g_workspace_context;
|
||||
|
||||
char g_config_file[4096];
|
||||
char g_lock_file[MAXLEN];
|
||||
bool g_verbose;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
- (void)addCustomObserver:(NSString *)name;
|
||||
@end
|
||||
|
||||
void *g_workspace_context;
|
||||
void workspace_create_custom_observer (void **context, char* notification);
|
||||
void workspace_event_handler_init(void **context);
|
||||
void workspace_event_handler_begin(void **context);
|
||||
|
|
Loading…
Reference in a new issue