mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-05 14:02:22 +00:00
13 lines
362 B
C++
13 lines
362 B
C++
#include "nghttp2/nghttp2.h"
|
|
|
|
#include <iostream>
|
|
#include <string.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
nghttp2_info* version = nghttp2_version(0);
|
|
if (strcmp(version -> version_str, "1.32.90") != 0) {
|
|
throw std::runtime_error("Wrong version: " + std::string(version -> version_str));
|
|
}
|
|
std::cout << "nghttp2 version: " << version -> version_str;
|
|
} |