Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-13 08:23:19

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2008 Google Inc.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 // Sets up the definition of struct timeval. This may result in the inclusion of
0009 // windows.h, so it should be avoided inside of other headers; instead, just use
0010 // `struct timeval` explicitly in definitions.
0011 
0012 #ifndef GOOGLE_PROTOBUF_UTIL_INTERNAL_TIMEVAL_H__
0013 #define GOOGLE_PROTOBUF_UTIL_INTERNAL_TIMEVAL_H__
0014 
0015 #ifdef _MSC_VER
0016 #ifdef _XBOX_ONE
0017 struct timeval {
0018   int64_t tv_sec;  /* seconds */
0019   int64_t tv_usec; /* and microseconds */
0020 };
0021 #else
0022 #include <winsock2.h>
0023 #endif  // _XBOX_ONE
0024 #else
0025 #include <sys/time.h>
0026 #endif
0027 
0028 #endif  // GOOGLE_PROTOBUF_UTIL_INTERNAL_TIMEVAL_H__