提交 6b4fe046 编写于 作者: A Andrew Dunstan

fix thinko in placement of TimeValStruct typedef in Windows case, as reported by Magnus.

上级 cdcee165
......@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.52 2006/12/16 00:38:43 adunstan Exp $
* $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.53 2006/12/18 14:17:41 adunstan Exp $
*/
#ifndef COMMON_H
#define COMMON_H
......@@ -79,11 +79,11 @@ typedef struct timeval TimevalStruct;
((int) ((T)->tv_usec - (U)->tv_usec))) / 1000.0)
#else
typedef struct _timeb TimevalStruct;
#include <sys/types.h>
#include <sys/timeb.h>
typedef struct _timeb TimevalStruct;
#define GETTIMEOFDAY(T) _ftime(T)
#define DIFF_MSEC(T, U) \
(((T)->time - (U)->time) * 1000.0 + \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册