Skip to content

Instantly share code, notes, and snippets.

<?hh
<<__NativeData("Timeval")>>
class Timeval {
/**
* Constructs a new instance of the Timeval class
* @param long $microseconds The number of microseconds in the interval
*/
<<__Native>>
--- a/examples/protonect/cmake_modules/SetupLibfreenect2Threading.cmake
+++ b/examples/protonect/cmake_modules/SetupLibfreenect2Threading.cmake
@@ -1,5 +1,6 @@
INCLUDE(CheckCXXSourceCompiles)
+
CHECK_CXX_SOURCE_COMPILES("
#include <thread>
#include <mutex>
@@ -12,6 +13,7 @@ int main(int argc, char** argv) {