Skip to content

Commit 6b4fe04

Browse files
committed
fix thinko in placement of TimeValStruct typedef in Windows case, as reported by Magnus.
1 parent cdcee16 commit 6b4fe04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/psql/common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.52 2006/12/16 00:38:43 adunstan Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.53 2006/12/18 14:17:41 adunstan Exp $
77
*/
88
#ifndef COMMON_H
99
#define COMMON_H
@@ -79,11 +79,11 @@ typedef struct timeval TimevalStruct;
7979
((int) ((T)->tv_usec - (U)->tv_usec))) / 1000.0)
8080
#else
8181

82-
typedef struct _timeb TimevalStruct;
83-
8482
#include <sys/types.h>
8583
#include <sys/timeb.h>
8684

85+
typedef struct _timeb TimevalStruct;
86+
8787
#define GETTIMEOFDAY(T) _ftime(T)
8888
#define DIFF_MSEC(T, U) \
8989
(((T)->time - (U)->time) * 1000.0 + \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy