]> git.codecow.com Git - Monocypher.git/commit
self: Initialize const values from macros
authorCuleX <cculex@gmail.com>
Sat, 5 Aug 2017 07:30:03 +0000 (09:30 +0200)
committerCuleX <cculex@gmail.com>
Sat, 5 Aug 2017 07:38:43 +0000 (09:38 +0200)
commitd417b8ecdd8825ab22601f5e07eeb7afcfb2b8e2
tree3bbe835d0f6e22be6139327789fcb1a2fe6e567e
parentf7b4e20821a4d435a259734555b330035fd1e279
self: Initialize const values from macros

This fixes building on OpenBSD 6.1, which ships with GCC 4.2.1. Trying
to build tests/self.c failed because it does not permit initializing a
const value from another const value.

The local const variables have been replaced with macros.

This fixes #9.
tests/self.c