summaryrefslogtreecommitdiff
path: root/src/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/platform.h')
-rw-r--r--src/include/platform.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index bdfbb4a4b..85f451bea 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -178,11 +178,11 @@
178/** 178/**
179 * GNU gettext support macro. 179 * GNU gettext support macro.
180 */ 180 */
181#define _(String) dgettext(PACKAGE, String) 181#define _(String) dgettext (PACKAGE, String)
182#define LIBEXTRACTOR_GETTEXT_DOMAIN "libextractor" 182#define LIBEXTRACTOR_GETTEXT_DOMAIN "libextractor"
183#else 183#else
184#include "libintlemu.h" 184#include "libintlemu.h"
185#define _(String) dgettext("org.gnunet.gnunet", String) 185#define _(String) dgettext ("org.gnunet.gnunet", String)
186#define LIBEXTRACTOR_GETTEXT_DOMAIN "org.gnunet.libextractor" 186#define LIBEXTRACTOR_GETTEXT_DOMAIN "org.gnunet.libextractor"
187#endif 187#endif
188 188
@@ -202,9 +202,9 @@
202#endif 202#endif
203 203
204 204
205#if !HAVE_ATOLL 205#if ! HAVE_ATOLL
206long long 206long long
207atoll(const char *nptr); 207atoll (const char *nptr);
208#endif 208#endif
209 209
210#if ENABLE_NLS 210#if ENABLE_NLS
@@ -212,7 +212,7 @@ atoll(const char *nptr);
212#endif 212#endif
213 213
214#ifndef SIZE_MAX 214#ifndef SIZE_MAX
215#define SIZE_MAX ((size_t)(-1)) 215#define SIZE_MAX ((size_t) (-1))
216#endif 216#endif
217 217
218#ifndef O_LARGEFILE 218#ifndef O_LARGEFILE
@@ -228,7 +228,9 @@ atoll(const char *nptr);
228 228
229 229
230#if defined(__sparc__) 230#if defined(__sparc__)
231#define MAKE_UNALIGNED(val) ({ __typeof__((val)) __tmp; memmove(&__tmp, &(val), sizeof((val))); __tmp; }) 231#define MAKE_UNALIGNED(val) ({ __typeof__((val)) __tmp; memmove (&__tmp, &(val), \
232 sizeof((val))); \
233 __tmp; })
232#else 234#else
233#define MAKE_UNALIGNED(val) val 235#define MAKE_UNALIGNED(val) val
234#endif 236#endif
@@ -258,7 +260,7 @@ atoll(const char *nptr);
258/** 260/**
259 * clang et al do not have such an attribute 261 * clang et al do not have such an attribute
260 */ 262 */
261#if __has_attribute(__nonstring__) 263#if __has_attribute (__nonstring__)
262# define __nonstring __attribute__((__nonstring__)) 264# define __nonstring __attribute__((__nonstring__))
263#else 265#else
264# define __nonstring 266# define __nonstring