Mercurial > hg > nginx
comparison auto/types/sizeof @ 4544:3a99980ac221
Some older OSes (notably FreeBSD 4.x) did not have %zu
format specifier, so revert to using %d.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 16 Mar 2012 07:33:55 +0000 |
parents | 51744fa997c7 |
children | 434548349838 |
comparison
equal
deleted
inserted
replaced
4543:51744fa997c7 | 4544:3a99980ac221 |
---|---|
24 #include <sys/resource.h> | 24 #include <sys/resource.h> |
25 $NGX_INCLUDE_INTTYPES_H | 25 $NGX_INCLUDE_INTTYPES_H |
26 $NGX_INCLUDE_AUTO_CONFIG_H | 26 $NGX_INCLUDE_AUTO_CONFIG_H |
27 | 27 |
28 int main() { | 28 int main() { |
29 printf("%zu", sizeof($ngx_type)); | 29 printf("%d", (int) sizeof($ngx_type)); |
30 return 0; | 30 return 0; |
31 } | 31 } |
32 | 32 |
33 END | 33 END |
34 | 34 |