Add standard headers, C++ support to tls.h.
authorbcook <bcook@openbsd.org>
Fri, 19 Jun 2015 06:20:11 +0000 (06:20 +0000)
committerbcook <bcook@openbsd.org>
Fri, 19 Jun 2015 06:20:11 +0000 (06:20 +0000)
commit0ed661cce7b4c238924a718dabe8d37b96fa2b95
treeb24e52f3a50534e6ad2c25336366bc2e1fad78e4
parent9b08b2044f70fb2b1351755a86e57b1ab331448c
Add standard headers, C++ support to tls.h.

This makes using libtls easier to include by including dependent headers,
making something like this work as expected:

#include <iostream>
#include <tls.h>

int main()
{
   std::cout << "tls_init: " << tls_init() << "\n";
}

This also makes building a standalone libtls-portable simpler.

ok doug@, jsing@
lib/libtls/tls.h