/*1* Vanitygen, vanity bitcoin address generator2* Copyright (C) 2011 <[email protected]>3*4* Vanitygen is free software: you can redistribute it and/or modify5* it under the terms of the GNU Affero General Public License as published by6* the Free Software Foundation, either version 3 of the License, or7* any later version.8*9* Vanitygen is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU Affero General Public License for more details.13*14* You should have received a copy of the GNU Affero General Public License15* along with Vanitygen. If not, see <http://www.gnu.org/licenses/>.16*/1718#if !defined (__VG_WINGLUE_H__)19#define __VG_WINGLUE_H__2021#include <windows.h>22#include <tchar.h>23#include <time.h>2425#define INLINE26#define snprintf _snprintf2728struct timezone;2930extern int gettimeofday(struct timeval *tv, struct timezone *tz);31extern void timeradd(struct timeval *a, struct timeval *b,32struct timeval *result);33extern void timersub(struct timeval *a, struct timeval *b,34struct timeval *result);3536extern TCHAR *optarg;37extern int optind;3839extern int getopt(int argc, TCHAR *argv[], TCHAR *optstring);4041extern int count_processors(void);4243#define PRSIZET "I"4445static inline char *46strtok_r(char *strToken, const char *strDelimit, char **context) {47return strtok_s(strToken, strDelimit, context);48}4950#endif /* !defined (__VG_WINGLUE_H__) */515253