This fixes the following error message seen when compiling against glibc 2.36: from scan/scan_httpdate.c:3: include/sys/cdefs.h:338:65: error: macro "__has_attribute" requires an identifier 338 | #if __GNUC_PREREQ (3,2) || __glibc_has_attribute (__deprecated__) Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
16 lines
342 B
Diff
16 lines
342 B
Diff
--- a/scan/scan_iso8601.c
|
|
+++ b/scan/scan_iso8601.c
|
|
@@ -1,5 +1,4 @@
|
|
#define _GNU_SOURCE
|
|
-#define __deprecated__
|
|
#include "scan.h"
|
|
#include "byte.h"
|
|
#include "case.h"
|
|
--- a/scan/scan_httpdate.c
|
|
+++ b/scan/scan_httpdate.c
|
|
@@ -1,5 +1,4 @@
|
|
#define _GNU_SOURCE
|
|
-#define __deprecated__
|
|
#include "scan.h"
|
|
#include "byte.h"
|
|
#include "case.h"
|