mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
fix strptime compilation error
This commit is contained in:
@@ -32,6 +32,28 @@
|
|||||||
#include <sodium.h>
|
#include <sodium.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#if defined __linux__ || defined __GNU__ || defined __GLIBC__
|
||||||
|
# ifndef _DEFAULT_SOURCE
|
||||||
|
# define _DEFAULT_SOURCE 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
# ifndef _XOPEN_SOURCE
|
||||||
|
# define _XOPEN_SOURCE 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
# ifndef _GNU_SOURCE
|
||||||
|
# define _GNU_SOURCE 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
# ifndef __USE_XOPEN
|
||||||
|
# define __USE_XOPEN 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
#else
|
||||||
|
# define _BSD_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|||||||
@@ -26,6 +26,28 @@
|
|||||||
#include <sodium.h>
|
#include <sodium.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#if defined __linux__ || defined __GNU__ || defined __GLIBC__
|
||||||
|
# ifndef _DEFAULT_SOURCE
|
||||||
|
# define _DEFAULT_SOURCE 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
# ifndef _XOPEN_SOURCE
|
||||||
|
# define _XOPEN_SOURCE 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
# ifndef _GNU_SOURCE
|
||||||
|
# define _GNU_SOURCE 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
# ifndef __USE_XOPEN
|
||||||
|
# define __USE_XOPEN 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
|
#else
|
||||||
|
# define _BSD_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
This file is part of Pretty Curved Privacy (pcp1).
|
This file is part of Pretty Curved Privacy (pcp1).
|
||||||
|
|
||||||
Copyright (C) 2014 T.v.Dein.
|
Copyright (C) 2014-2016 T.v.Dein.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -38,6 +38,11 @@
|
|||||||
# ifndef _GNU_SOURCE
|
# ifndef _GNU_SOURCE
|
||||||
# define _GNU_SOURCE 1
|
# define _GNU_SOURCE 1
|
||||||
# endif
|
# endif
|
||||||
|
#
|
||||||
|
# ifndef __USE_XOPEN
|
||||||
|
# define __USE_XOPEN 1
|
||||||
|
# endif
|
||||||
|
#
|
||||||
#else
|
#else
|
||||||
# define _BSD_SOURCE 1
|
# define _BSD_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user