Skip to content

Commit

Permalink
Merge pull request #49 from ngtcp2/macro-comments
Browse files Browse the repository at this point in the history
Consistent macro comments
  • Loading branch information
tatsuhiro-t authored Sep 14, 2024
2 parents 0425e9f + f6bc767 commit a2f6c4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions sfparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@
libcurl) */
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
# define WIN32
#endif
#endif /* (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) */

#ifdef __cplusplus
extern "C" {
#endif
#endif /* defined(__cplusplus) */

#if defined(_MSC_VER) && (_MSC_VER < 1800)
/* MSVC < 2013 does not have inttypes.h because it is not C99
compliant. See compiler macros and version number in
https://sourceforge.net/p/predef/wiki/Compilers/ */
# include <stdint.h>
#else /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */
#else /* !(defined(_MSC_VER) && (_MSC_VER < 1800)) */
# include <inttypes.h>
#endif /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */
#endif /* !(defined(_MSC_VER) && (_MSC_VER < 1800)) */
#include <sys/types.h>
#include <stddef.h>

Expand Down Expand Up @@ -423,6 +423,6 @@ void sf_pctdecode(sf_vec *dest, const sf_vec *src);

#ifdef __cplusplus
}
#endif
#endif /* defined(__cplusplus) */

#endif /* SFPARSE_H */
#endif /* !defined(SFPARSE_H) */
2 changes: 1 addition & 1 deletion sfparse_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ munit_void_test_decl(test_sf_parser_key_generated);
munit_void_test_decl(test_sf_parser_large_generated);
munit_void_test_decl(test_sf_parser_examples);

#endif /* SFPARSE_TEST_H */
#endif /* !defined(SFPARSE_TEST_H) */
2 changes: 1 addition & 1 deletion sfparse_test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
#endif /* defined(HAVE_CONFIG_H) */

#include "munit.h"

Expand Down

0 comments on commit a2f6c4a

Please sign in to comment.