mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
Merge branch 'maint-0.4.7'
This commit is contained in:
commit
1ff78f3751
10
configure.ac
10
configure.ac
@ -1863,7 +1863,7 @@ AC_CACHE_CHECK([whether memset(0) sets pointers to NULL], tor_cv_null_is_zero,
|
||||
#ifdef HAVE_STDDEF_H
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
|
||||
int main (void) { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
|
||||
return memcmp(&p1,&p2,sizeof(char*))?1:0; }]])],
|
||||
[tor_cv_null_is_zero=yes],
|
||||
[tor_cv_null_is_zero=no],
|
||||
@ -1887,7 +1887,7 @@ AC_CACHE_CHECK([whether memset(0) sets doubles to 0.0], tor_cv_dbl0_is_zero,
|
||||
#ifdef HAVE_STDDEF_H
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
int main () { double d1,d2; d1=0; memset(&d2,0,sizeof(d2));
|
||||
int main (void) { double d1,d2; d1=0; memset(&d2,0,sizeof(d2));
|
||||
return memcmp(&d1,&d2,sizeof(d1))?1:0; }]])],
|
||||
[tor_cv_dbl0_is_zero=yes],
|
||||
[tor_cv_dbl0_is_zero=no],
|
||||
@ -1912,7 +1912,7 @@ AC_CACHE_CHECK([whether we can malloc(0) safely.], tor_cv_malloc_zero_works,
|
||||
#ifdef HAVE_STDDEF_H
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
int main () { return malloc(0)?0:1; }]])],
|
||||
int main (void) { return malloc(0)?0:1; }]])],
|
||||
[tor_cv_malloc_zero_works=yes],
|
||||
[tor_cv_malloc_zero_works=no],
|
||||
[tor_cv_malloc_zero_works=cross])])
|
||||
@ -1930,7 +1930,7 @@ fi
|
||||
# whether we seem to be in a 2s-complement world.
|
||||
AC_CACHE_CHECK([whether we are using 2s-complement arithmetic], tor_cv_twos_complement,
|
||||
[AC_RUN_IFELSE([AC_LANG_SOURCE(
|
||||
[[int main () { int problem = ((-99) != (~99)+1);
|
||||
[[int main (void) { int problem = ((-99) != (~99)+1);
|
||||
return problem ? 1 : 0; }]])],
|
||||
[tor_cv_twos_complement=yes],
|
||||
[tor_cv_twos_complement=no],
|
||||
@ -1950,7 +1950,7 @@ fi
|
||||
# What does shifting a negative value do?
|
||||
AC_CACHE_CHECK([whether right-shift on negative values does sign-extension], tor_cv_sign_extend,
|
||||
[AC_RUN_IFELSE([AC_LANG_SOURCE(
|
||||
[[int main () { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }]])],
|
||||
[[int main (void) { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }]])],
|
||||
[tor_cv_sign_extend=yes],
|
||||
[tor_cv_sign_extend=no],
|
||||
[tor_cv_sign_extend=cross])])
|
||||
|
Loading…
Reference in New Issue
Block a user