Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
girara
Commits
17ef13f7
Commit
17ef13f7
authored
Feb 10, 2018
by
Sebastian Ramacher
Browse files
Clean up flag handling
parent
dfcd27e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
girara/utils.c
View file @
17ef13f7
/* 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>
...
...
meson.build
View file @
17ef13f7
...
...
@@ -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
=
[
...
...
tests/meson.build
View file @
17ef13f7
...
...
@@ -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
()
...
...
tests/test_utils.c
View file @
17ef13f7
// 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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment