]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/contrib/transport-sample/config.h
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / contrib / transport-sample / config.h
CommitLineData
f67539c2
TL
1//Missing definitions for *NIX systems. This sample project
2//was initially created on Windows.
3
4#include <unistd.h>
5#include <stdlib.h>
6#include <string.h>
7
8#define TEXT(str) str
9
10inline int Sleep(int ms)
11{
12 return sleep(ms/1000); //sleep() param is in seconds
13}
14
15inline int _tcscmp(const char* str1, const char* str2)
16{
17 return strcmp(str1, str2);
18}
19
20inline int _tstoi(const char* str)
21{
22 return atoi(str);
23}
24