tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PlatformConfig.h (2344B)


      1 /** @file
      2    @brief Auto-configured header
      3 
      4    If this filename ends in `.h`, don't edit it: your edits will
      5    be lost next time this file is regenerated!
      6 
      7    Must be c-safe!
      8 
      9    @date 2014
     10 
     11    @author
     12    Sensics, Inc.
     13    <http://sensics.com/osvr>
     14 */
     15 
     16 /*
     17 // Copyright 2014 Sensics, Inc.
     18 //
     19 // Licensed under the Apache License, Version 2.0 (the "License");
     20 // you may not use this file except in compliance with the License.
     21 // You may obtain a copy of the License at
     22 //
     23 //     http://www.apache.org/licenses/LICENSE-2.0
     24 //
     25 // Unless required by applicable law or agreed to in writing, software
     26 // distributed under the License is distributed on an "AS IS" BASIS,
     27 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     28 // See the License for the specific language governing permissions and
     29 // limitations under the License.
     30 */
     31 
     32 #ifndef INCLUDED_PlatformConfig_h_GUID_0D10E644_8114_4294_A839_699F39E1F0E0
     33 #define INCLUDED_PlatformConfig_h_GUID_0D10E644_8114_4294_A839_699F39E1F0E0
     34 
     35 /** @def OSVR_HAVE_STRUCT_TIMEVAL_IN_WINSOCK2_H
     36    @brief Does the system have struct timeval in <winsock2.h>?
     37 */
     38 #define OSVR_HAVE_STRUCT_TIMEVAL_IN_WINSOCK2_H
     39 
     40 /** @def OSVR_HAVE_STRUCT_TIMEVAL_IN_SYS_TIME_H
     41    @brief Does the system have struct timeval in <sys/time.h>?
     42 */
     43 
     44 /*
     45    MinGW and similar environments have both winsock and sys/time.h, so
     46    we hide this define for disambiguation at the top level.
     47 */
     48 #ifndef OSVR_HAVE_STRUCT_TIMEVAL_IN_WINSOCK2_H
     49 /* #undef OSVR_HAVE_STRUCT_TIMEVAL_IN_SYS_TIME_H */
     50 #endif
     51 
     52 #if defined(OSVR_HAVE_STRUCT_TIMEVAL_IN_SYS_TIME_H) || \
     53    defined(OSVR_HAVE_STRUCT_TIMEVAL_IN_WINSOCK2_H)
     54 #  define OSVR_HAVE_STRUCT_TIMEVAL
     55 #endif
     56 
     57 /**
     58 * Platform-specific variables.
     59 *
     60 * Prefer testing for specific compiler or platform features instead of relying
     61 * on these variables.
     62 *
     63 */
     64 //@{
     65 /* #undef OSVR_AIX */
     66 /* #undef OSVR_ANDROID */
     67 /* #undef OSVR_BSDOS */
     68 /* #undef OSVR_FREEBSD */
     69 /* #undef OSVR_HPUX */
     70 /* #undef OSVR_IRIX */
     71 /* #undef OSVR_LINUX */
     72 /* #undef OSVR_KFREEBSD */
     73 /* #undef OSVR_NETBSD */
     74 /* #undef OSVR_OPENBSD */
     75 /* #undef OSVR_OFS1 */
     76 /* #undef OSVR_SCO_SV */
     77 /* #undef OSVR_UNIXWARE */
     78 /* #undef OSVR_XENIX */
     79 /* #undef OSVR_SUNOS */
     80 /* #undef OSVR_TRU64 */
     81 /* #undef OSVR_ULTRIX */
     82 /* #undef OSVR_CYGWIN */
     83 /* #undef OSVR_MACOSX */
     84 #define OSVR_WINDOWS
     85 //@}
     86 
     87 #endif