~ubuntu-branches/debian/jessie/stellarium/jessie

« back to all changes in this revision

Viewing changes to plugins/TelescopeControl/src/servers/Socket.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cédric Delfosse
  • Date: 2010-07-31 15:44:02 UTC
  • mto: (11.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100731154402-iuudg8mlljdlsedz
Tags: upstream-0.10.5
Import upstream version 0.10.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
Johannes Gajdosik, 2006
9
9
 
10
10
This library is free software; you can redistribute it and/or
11
 
modify it under the terms of the GNU Lesser General Public
12
 
License as published by the Free Software Foundation; either
13
 
version 2.1 of the License, or (at your option) any later version.
 
11
modify it under the terms of the GNU General Public License
 
12
as published by the Free Software Foundation; either version 2
 
13
of the License, or (at your option) any later version.
14
14
 
15
15
This library is distributed in the hope that it will be useful,
16
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18
 
Lesser General Public License for more details.
 
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
GNU General Public License for more details.
19
19
 
20
 
You should have received a copy of the GNU Lesser General Public
21
 
License along with this library; if not, write to the Free Software
22
 
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
20
You should have received a copy of the GNU General Public License
 
21
along with this library; if not, write to the Free Software
 
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23
23
*/
24
24
 
25
25
#include "Socket.hpp"
26
26
 
27
 
#ifdef WIN32
 
27
#ifdef Q_OS_WIN32
28
28
  #include <windows.h> // GetSystemTimeAsFileTime
29
29
#else
30
30
  #include <sys/time.h>
32
32
 
33
33
long long int GetNow(void)
34
34
{
35
 
#ifdef WIN32
 
35
#ifdef Q_OS_WIN32
36
36
        union
37
37
        {
38
38
                FILETIME file_time;