]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: compile C code with c99 12369/head
authorKefu Chai <kchai@redhat.com>
Thu, 8 Dec 2016 01:45:18 +0000 (09:45 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 8 Dec 2016 02:13:49 +0000 (10:13 +0800)
commita488c5d8ea578e2a53f73c8aa094e0c35d38930c
treec2c2bb6683d5c211f1f57680025aed66cdbca69c
parentdfa7de61b11b3913b53b1edbf017b92033dda992
cmake: compile C code with c99

so the functions like snprintf() available in C99 are available without
defining _XOPEN_SOURCE. and "asm()" is used to inline assembly, so use
the GNU's extension instead of C99 standard.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt
src/common/safe_io.c