0
0
mirror of https://github.com/vim/vim.git synced 2025-10-22 08:34:29 -04:00

patch 9.1.1584: using ints as boolean type

Problem:  using ints as bool
Solution: Include stdbool.h and start using bool type directly
          (Hirohito Higashi)

This is a test to see if using the boolean types cause any issues.
If this change causes issues on any platform, please reach out.

closes: #17830

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-07-23 20:41:11 +02:00
committed by Christian Brabandt
parent 2566a9f290
commit 5608f3dc93
4 changed files with 6 additions and 3 deletions

View File

@@ -522,6 +522,7 @@ typedef long long vimlong_T;
// for offsetof()
#include <stddef.h>
#include <stdbool.h>
#if defined(HAVE_SYS_SELECT_H) && \
(!defined(HAVE_SYS_TIME_H) || defined(SYS_SELECT_WITH_SYS_TIME))