summaryrefslogtreecommitdiff
path: root/include/ruby/3/attr/format.h
diff options
context:
space:
mode:
-rw-r--r--include/ruby/3/attr/format.h18
1 files changed, 7 insertions, 11 deletions
@@ -1,4 +1,6 @@
-/** \noop-*-C++-*-vi:ft=cpp
* @file
* @author Ruby developers <[email protected]>
* @copyright This file is a part of the programming language Ruby.
@@ -20,22 +22,16 @@
*/
/** Wraps (or simulates) `__attribute__((format))` */
-#if defined(RUBY3_ATTR_FORMAT)
-# /* Take that. */
-
-#elif RUBY3_HAS_ATTRIBUTE(format)
# define RUBY3_ATTR_FORMAT(x, y, z) __attribute__((__format__(x, y, z)))
-
#else
# define RUBY3_ATTR_FORMAT(x, y, z) /* void */
#endif
-#if defined(RUBY3_PRINTF_FORMAT)
-# /* Take that. */
-
-#elif defined(__MINGW_PRINTF_FORMAT)
# define RUBY3_PRINTF_FORMAT __MINGW_PRINTF_FORMAT
-
#else
# define RUBY3_PRINTF_FORMAT __printf__
#endif