On MSVC, I see this compilation error:

/home/bruno/msvc/compile cl -nologo -DHAVE_CONFIG_H -I. -I../../gllib -I..  
-DGNULIB_STRICT_CHECKING=1 -D_WIN32_WINNT=_WIN32_WINNT_WIN7 
-I/usr/local/msvc64/include  -MD -c -o stdbit.obj `cygpath -w 
'../../gllib/stdbit.c'`
stdbit.c
.\stdbit.h(252): error C2143: syntax error: missing ';' before '}'
make[4]: *** [Makefile:1105: stdbit.obj] Error 2

This patch should fix it.


2024-05-17  Bruno Haible  <br...@clisp.org>

        stdbit-h: Fix syntax error.
        * lib/stdbit.in.h (__gl_stdbit_ctzll) [_MSC_VER]: Fix syntax error.

diff --git a/lib/stdbit.in.h b/lib/stdbit.in.h
index f241a5c573..b5b5870eba 100644
--- a/lib/stdbit.in.h
+++ b/lib/stdbit.in.h
@@ -247,7 +247,6 @@ __gl_stdbit_ctzll (unsigned long long int n)
   unsigned int lo = n;
   return __gl_stdbit_ctzl (lo ? lo : n >> 32) + (lo ? 0 : 32);
 # endif
-_GL_STDBIT_INLINE int
 }
 
 #else /* !_MSC_VER */




Reply via email to