mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
test-sizeof: do not link with libsystemd-shared
This makes it much quicker to compile.
This commit is contained in:
parent
ab88312570
commit
61d1a5a25c
@ -2182,9 +2182,6 @@ test_selinux_LDADD = \
|
||||
test_sizeof_SOURCES = \
|
||||
src/test/test-sizeof.c
|
||||
|
||||
test_sizeof_LDADD = \
|
||||
libsystemd-shared.la
|
||||
|
||||
BUILT_SOURCES += \
|
||||
src/test/test-hashmap-ordered.c
|
||||
|
||||
|
@ -17,7 +17,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "log.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include "time-util.h"
|
||||
|
||||
/* Print information about various types. Useful when diagnosing
|
||||
@ -26,10 +27,10 @@
|
||||
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||
|
||||
#define info(t) \
|
||||
log_info("%s → %zu bits%s", STRINGIFY(t), \
|
||||
sizeof(t)*CHAR_BIT, \
|
||||
strstr(STRINGIFY(t), "signed") ? "" : \
|
||||
((t)-1 < (t)0 ? ", signed" : ", unsigned"));
|
||||
printf("%s → %zu bits%s\n", STRINGIFY(t), \
|
||||
sizeof(t)*CHAR_BIT, \
|
||||
strstr(STRINGIFY(t), "signed") ? "" : \
|
||||
((t)-1 < (t)0 ? ", signed" : ", unsigned"));
|
||||
|
||||
int main(void) {
|
||||
info(char);
|
||||
|
Loading…
x
Reference in New Issue
Block a user