Fix wrong pos of define

This commit is contained in:
jun7 2018-05-22 15:43:05 +09:00
parent 19b09023da
commit 752fa34d66

7
ab.c
View File

@ -19,8 +19,6 @@ along with wyebadblock. If not, see <http://www.gnu.org/licenses/>.
#include "wyebrun.h" #include "wyebrun.h"
#define EXE "wyebab"
#if DEBUG #if DEBUG
# define D(f, ...) g_print("#"#f"\n", __VA_ARGS__); # define D(f, ...) g_print("#"#f"\n", __VA_ARGS__);
# define DD(a) g_print("#"#a"\n"); # define DD(a) g_print("#"#a"\n");
@ -29,8 +27,11 @@ along with wyebadblock. If not, see <http://www.gnu.org/licenses/>.
# define DD(a) ; # define DD(a) ;
#endif #endif
#if ISEXT #if ISEXT
#define EXE "wyebab"
#include <webkit2/webkit-web-extension.h> #include <webkit2/webkit-web-extension.h>
static bool first = true; static bool first = true;
static bool check(const char *requri, const char *pageuri) static bool check(const char *requri, const char *pageuri)
@ -117,6 +118,8 @@ G_MODULE_EXPORT void webkit_web_extension_initialize_with_user_data(
g_signal_connect(ex, "page-created", G_CALLBACK(pageinit), NULL); g_signal_connect(ex, "page-created", G_CALLBACK(pageinit), NULL);
} }
#else #else
#include "ephy-uri-tester.h" #include "ephy-uri-tester.h"