Some hack to prevent gcc warnings. This could be solved by separate file, but...

This commit is contained in:
Sanel Zukan 2011-10-21 15:50:43 +00:00
parent 46cb6110b7
commit af906eb737
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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))