Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
19 lines
391 B
C
19 lines
391 B
C
#include <assert.h>
|
|
#include <png.h>
|
|
#include <string.h>
|
|
|
|
int main()
|
|
{
|
|
png_uint_32 png_version;
|
|
char png_version_string[16];
|
|
|
|
png_version = png_access_version_number();
|
|
|
|
snprintf(png_version_string, 16, "%i.%i.%i", png_version / 10000,
|
|
(png_version % 10000) / 100, png_version % 100);
|
|
|
|
assert(strcmp(png_version_string, CMAKE_EXPECTED_PNG_VERSION) == 0);
|
|
|
|
return 0;
|
|
}
|