[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd/cvd_src/Win32 win32.cpp win32.h
From: |
Edward Rosten |
Subject: |
[libcvd-members] libcvd/cvd_src/Win32 win32.cpp win32.h |
Date: |
Fri, 19 Aug 2011 17:21:13 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Edward Rosten <edrosten> 11/08/19 17:21:13
Modified files:
cvd_src/Win32 : win32.cpp win32.h
Log message:
Put libcvd's win32 implementation of gettimeofday inside the CVD
namespace
so that libcvd plays nicely with libraries written by other people who
also
think it is a good idea to put gettimeofday in the global namespace.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd_src/Win32/win32.cpp?cvsroot=libcvd&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd_src/Win32/win32.h?cvsroot=libcvd&r1=1.1&r2=1.2
Patches:
Index: win32.cpp
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd_src/Win32/win32.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- win32.cpp 16 Dec 2009 16:22:49 -0000 1.4
+++ win32.cpp 19 Aug 2011 17:21:13 -0000 1.5
@@ -15,6 +15,7 @@
#endif
// implementation from
http://www.openasthra.com/c-tidbits/gettimeofday-function-for-windows/
+namespace CVD {
int gettimeofday(struct timeval *tv, struct timezone *tz)
{
FILETIME ft;
@@ -50,7 +51,6 @@
return 0;
}
-namespace CVD {
namespace Internal {
Index: win32.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd_src/Win32/win32.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- win32.h 12 Jun 2008 13:04:16 -0000 1.1
+++ win32.h 19 Aug 2011 17:21:13 -0000 1.2
@@ -5,7 +5,7 @@
#include <cvd/config.h>
#include <windows.h>
-
+namespace CVD{
struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
@@ -13,5 +13,5 @@
};
int gettimeofday(struct timeval *tv, struct timezone *tz);
-
+}
#endif //CVD_INTERNAL_WIN32_H
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd/cvd_src/Win32 win32.cpp win32.h,
Edward Rosten <=