Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (21 sloc) 0.657 kB
b7319a8 Asynch name lookups
ec429 authored
1 #pragma once
2
3 /*
4 quIRC - simple terminal-based IRC client
1bd8f39 Nudge copyright year (to "2010-12")
ec429 authored
5 Copyright (C) 2010-12 Edward Cree
b7319a8 Asynch name lookups
ec429 authored
6
7 See quirc.c for license information
8 osconf.h: platform-specific configuration settings
9 */
10
8f02e01 Better handling of osconf (config.mak, etc.)
ec429 authored
11 #ifndef ASYNCH_NL
12 #define ASYNCH_NL 1 // set to 0 if platform does not provide getaddrinfo_a() (and remove -lanl from Makefile OPTLIBS)
5b23754 Use ! instead of ¬ to indicate "not" in a comment
ec429 authored
13 #endif /* !ASYNCH_NL */
88d9246 osconf: INTMAX_BUG to workaround a gcc/musl issue with %jd.
ec429 authored
14
15 #ifndef INTMAX_BUG
16 #define INTMAX_BUG 0 // set to 1 if platform doesn't like printf("...%jd...", (intmax_t)x); e.g. musl libc
17 #endif
18
19 #if INTMAX_BUG
20 #define PRINTMAX "%lld"
983b60e @ec429 Fix for Issue 19 (Crazy dates in X_TOPICWASSET)
authored
21 #define TYPEINTMAX long long int
88d9246 osconf: INTMAX_BUG to workaround a gcc/musl issue with %jd.
ec429 authored
22 #else
23 #define PRINTMAX "%jd"
983b60e @ec429 Fix for Issue 19 (Crazy dates in X_TOPICWASSET)
authored
24 #define TYPEINTMAX intmax_t
88d9246 osconf: INTMAX_BUG to workaround a gcc/musl issue with %jd.
ec429 authored
25 #endif
983b60e @ec429 Fix for Issue 19 (Crazy dates in X_TOPICWASSET)
authored
26 #define CASTINTMAX (TYPEINTMAX)
Something went wrong with that request. Please try again.