Use extern for variables in headers.

SVN revision: 10364
This commit is contained in:
rbdpngn 2004-05-26 04:26:28 +00:00 committed by rbdpngn
parent 8c29c3d42b
commit 86fbabac52
2 changed files with 3 additions and 2 deletions

View File

@ -14,10 +14,11 @@
#include <unistd.h>
#include <util.h>
int DEBUG = 0;
Ecore_Config_Server *__ecore_config_server_global = NULL;
Ecore_Config_Server *__ecore_config_server_local = NULL;
Ecore_Config_Bundle *__ecore_config_bundle_local = NULL;
char *__ecore_config_app_name = NULL;
char *__ecore_config_app_name = NULL;
Ecore_Config_Server *_ecore_config_ipc_init(char *name);
int _ecore_config_ipc_exit(void);

View File

@ -2,7 +2,7 @@
# define _ECORE_CONFIG_PRIVATE_H
/* debug */
int DEBUG;
extern int DEBUG;
# define D(fmt,args...) do { if(DEBUG>=0) fprintf(stderr,fmt,## args); } while(0);
# define E(lvl,args...) do { if(DEBUG>=(lvl)) fprintf(stderr,## args); } while(0)