Mercurial > projects > sencrypt
comparison sencrypt.c @ 12:14e58decdf87
Detect the OS and configure build flags and libraries automatically
author | Guido Berhoerster <guido+sencrypt@berhoerster.name> |
---|---|
date | Tue, 13 Sep 2016 18:37:25 +0200 |
parents | 8e9dd5328b5a |
children | 00ca3ee8e310 |
comparison
equal
deleted
inserted
replaced
11:27bc2d4947da | 12:14e58decdf87 |
---|---|
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | 19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | 20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
22 */ | 22 */ |
23 | 23 |
24 #define _XOPEN_SOURCE 600 | |
25 | |
26 #include <stdio.h> | 24 #include <stdio.h> |
27 #include <string.h> | 25 #include <string.h> |
28 #include <stdint.h> | 26 #include <stdint.h> |
29 #include <stdbool.h> | 27 #include <stdbool.h> |
30 #include <unistd.h> | 28 #include <unistd.h> |
37 #include <openssl/evp.h> | 35 #include <openssl/evp.h> |
38 #include <openssl/err.h> | 36 #include <openssl/err.h> |
39 | 37 |
40 #ifdef HAVE_ERR_H | 38 #ifdef HAVE_ERR_H |
41 #include <err.h> | 39 #include <err.h> |
42 #else | |
43 #include "err.h" | |
44 #endif /* HAVE_ERR_H */ | 40 #endif /* HAVE_ERR_H */ |
45 #include "compat.h" | 41 #include "compat.h" |
46 | 42 |
47 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) | 43 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) |
48 | 44 |