Skip to content

Commit

Permalink
compcert: use of undeclared identifier __FUNCTION__
Browse files Browse the repository at this point in the history
a compiler extension
  • Loading branch information
rurban committed Oct 27, 2023
1 parent a3e7f96 commit b9e0458
Show file tree
Hide file tree
Showing 10 changed files with 1,179 additions and 1,151 deletions.
10 changes: 6 additions & 4 deletions include/dwg_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
#include <stdbool.h>
#include "dwg.h"

#ifndef __attribute_deprecated__
/* Since version 3.2, gcc allows marking deprecated functions. */
#if (defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 302)
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
#else
# define __attribute_deprecated__
# if (defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 302)
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
# else
# define __attribute_deprecated__
# endif
#endif

#if defined(__clang__) && defined(__has_extension)
Expand Down
Loading

0 comments on commit b9e0458

Please sign in to comment.