diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-04-29 18:55:33 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-04-29 18:55:41 +0200 |
| commit | ea5c6307c674d345295de3e1301ea16586880484 (patch) | |
| tree | f8fdbf78e1c4a804204d67c0c1855cdd2ad3b71d /src | |
| parent | Use bold, not blackboard bold (diff) | |
| download | libzahl-ea5c6307c674d345295de3e1301ea16586880484.tar.gz libzahl-ea5c6307c674d345295de3e1301ea16586880484.tar.bz2 libzahl-ea5c6307c674d345295de3e1301ea16586880484.tar.xz | |
Change UNSAFE to ZAHL_UNSAFE, so it can be used in zahl-inlines.h
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
| -rw-r--r-- | src/internals.h | 2 | ||||
| -rw-r--r-- | src/zrand.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/internals.h b/src/internals.h index 3213441..6faa254 100644 --- a/src/internals.h +++ b/src/internals.h @@ -97,7 +97,7 @@ extern void *libzahl_temp_allocation; #define likely(expr) ZAHL_LIKELY(expr) #define unlikely(expr) ZAHL_UNLIKELY(expr) -#if defined(UNSAFE) +#if defined(ZAHL_UNSAFE) # define check(expr) 0 #else # define check(expr) unlikely(expr) diff --git a/src/zrand.c b/src/zrand.c index 020b58c..e236a94 100644 --- a/src/zrand.c +++ b/src/zrand.c @@ -209,7 +209,7 @@ zrand(z_t r, enum zranddev dev, enum zranddist dist, z_t n) break; default: -#if !defined(UNSAFE) +#if !defined(ZAHL_UNSAFE) libzahl_failure(EINVAL); #endif break; |
