Commit 17ef13f7 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Clean up flag handling

parent dfcd27e0
/* See LICENSE file for license and copyright information */
#define _DEFAULT_SOURCE
#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)
#define _XOPEN_SOURCE 700
#endif
#include <ctype.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
......
......@@ -32,7 +32,8 @@ pc_requires = ['glib-2.0', 'gtk+-3.0']
defines = [
'-DGETTEXT_PACKAGE="libgirara-gtk3-@0@"'.format(so_major),
'-DLOCALEDIR="@0@"'.format(join_paths(prefix, localedir))
'-DLOCALEDIR="@0@"'.format(join_paths(prefix, localedir)),
'-D_DEFAULT_SOURCE',
]
flags = [
......
......@@ -19,12 +19,14 @@ if check.found()
xdg_test_helper = executable('xdg_test_helper', 'xdg_test_helper.c',
dependencies: [ glib, declare_dependency(link_with: girara) ],
include_directories: include_directories
include_directories: include_directories,
c_args: defines + flags
)
tests = executable('tests', test_sources,
dependencies: build_dependencies + test_dependencies,
include_directories: include_directories,
c_args: defines + flags
)
env = environment()
......
// See LICENSE file for license and copyright information
#define _DEFAULT_SOURCE
#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
#define _POSIX_SOURCE
#endif
#include <check.h>
#include <glib.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment