mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Some hack to prevent gcc warnings. This could be solved by separate file, but...
This commit is contained in:
parent
46cb6110b7
commit
af906eb737
@ -10,6 +10,8 @@ struct KnownApp {
|
|||||||
|
|
||||||
#define KNOWN_APP_END {0, 0}
|
#define KNOWN_APP_END {0, 0}
|
||||||
|
|
||||||
|
/* to allow inclusion from single place, without issuing gcc warnings */
|
||||||
|
#if KNOWN_APP_PREDEFINED
|
||||||
static KnownApp app_browsers[] = {
|
static KnownApp app_browsers[] = {
|
||||||
{"Mozilla Firefox", "firefox"},
|
{"Mozilla Firefox", "firefox"},
|
||||||
{"Mozilla Seamonkey", "seamonkey"},
|
{"Mozilla Seamonkey", "seamonkey"},
|
||||||
@ -40,5 +42,6 @@ static KnownApp app_terminals[] = {
|
|||||||
{"Xfce Terminal", "xfterm4"},
|
{"Xfce Terminal", "xfterm4"},
|
||||||
KNOWN_APP_END
|
KNOWN_APP_END
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
#include <edelib/Resource.h>
|
#include <edelib/Resource.h>
|
||||||
#include <edelib/Debug.h>
|
#include <edelib/Debug.h>
|
||||||
|
|
||||||
|
#define KNOWN_APP_PREDEFINED 1
|
||||||
|
#include "PredefApps.h"
|
||||||
#include "AppChoice.h"
|
#include "AppChoice.h"
|
||||||
|
|
||||||
#define EMPTY_STR(s) (s[0] == '\0' || (strlen(s) == 0))
|
#define EMPTY_STR(s) (s[0] == '\0' || (strlen(s) == 0))
|
||||||
|
Loading…
Reference in New Issue
Block a user