Skip to content

Commit b702260

Browse files
committed
Fix building on compilers without __has_attribute
1 parent 88312d2 commit b702260

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/src/connection.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
#include <assert.h>
3535
#include <unistd.h>
3636

37+
#ifndef __has_attribute
38+
# define __has_attribute(x) 0 /* for GCC 4.8 and earlier */
39+
#endif
40+
3741
static int add_userinfo_to_config(const char *userinfo, neo4j_config_t *config,
3842
uint_fast32_t flags);
3943
static neo4j_connection_t *establish_connection(const char *hostname,

0 commit comments

Comments
 (0)