Skip to content
Snippets Groups Projects
Commit 69672a08 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

And https://gcc.gnu.org/onlinedocs/cpp/Defined.html says defined is not needed.

> Conditionals written like this:
>
>      #if defined BUFSIZE && BUFSIZE >= 1024
>
> can generally be simplified to just #if BUFSIZE >= 1024, since if BUFSIZE is not defined, it will be interpreted as having the value zero.
parent a4a9306b
No related branches found
No related tags found
1 merge request!493nettle_len improvement
......@@ -25,7 +25,7 @@
#include "error.h"
#include "shared.h"
#if defined (NETTLE_VERSION_MAJOR) && NETTLE_VERSION_MAJOR >= 3
#if NETTLE_VERSION_MAJOR >= 3
typedef size_t nettle_len;
#else
typedef unsigned nettle_len;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment