Skip to content

Commit

Permalink
PLACEHOLDER() now really works with C99
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeldan committed Oct 17, 2021
1 parent 812edd2 commit e387c80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
5.1.2:
- PLACEHOLDER() now works as long as the C standard version is at least C99.

5.1.1:
- The PLACEHOLDER() macro no longer depends upon features.h.
- Fixed how VASQ_REJECT_PLACEHOLDER works.
Expand Down
2 changes: 1 addition & 1 deletion include/vasq/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @brief Current version of the library.
*/
#define VASQ_VERSION "5.1.1"
#define VASQ_VERSION "5.1.2"

#ifndef NO_OP
#define NO_OP ((void)0)
Expand Down
6 changes: 3 additions & 3 deletions include/vasq/placeholder.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "config.h"
#include "definitions.h"

#ifdef __USE_ISOC99
#if __STDC_VERSION__ >= 199901L

#if defined(VASQ_REJECT_PLACEHOLDER) || (!defined(DEBUG) && !defined(VASQ_ALLOW_PLACEHOLDER))

Expand All @@ -25,11 +25,11 @@

#endif

#else // __USE_ISOC99
#else // __STDC_VERSION__

#warning "_Pragma not defined and so PLACEHOLDER() will not work."
#define PLACEHOLDER() NO_OP

#endif // __USE_ISOC99
#endif // __STDC_VERSION__

#endif // VANILLA_SQUAD_PLACEHOLDER_H

0 comments on commit e387c80

Please sign in to comment.