Skip to content

Commit

Permalink
Use #error
Browse files Browse the repository at this point in the history
We already use C99, so we can use `#error` safely.
  • Loading branch information
k-takata committed Dec 1, 2019
1 parent 9625d3d commit 8f48eec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/blowfish.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ typedef union {
# ifdef HAVE_CONFIG_H
// in configure.ac AC_C_BIGENDIAN() defines WORDS_BIGENDIAN when needed
# else
error!
Please change this code to define WORDS_BIGENDIAN for big-endian machines.
# error Please change this code to define WORDS_BIGENDIAN for big-endian machines.
# endif
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/vim.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* test program. Other items from configure may also be wrong then!
*/
# if (VIM_SIZEOF_INT == 0)
Error: configure did not run properly. Check auto/config.log.
# error configure did not run properly. Check auto/config.log.
# endif

# if defined(__gnu_linux__) || defined(__CYGWIN__)
Expand Down Expand Up @@ -151,7 +151,7 @@
#endif

#if VIM_SIZEOF_INT < 4 && !defined(PROTO)
Error: Vim only works with 32 bit int or larger
# error Vim only works with 32 bit int or larger
#endif

/*
Expand Down

0 comments on commit 8f48eec

Please sign in to comment.