]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/boost/boost/detail/win/system.hpp
Add subset of boost library headers needed for compilation on PowerPC
[eurobot/public.git] / src / boost / boost / detail / win / system.hpp
1 //  system.hpp  --------------------------------------------------------------//
2
3 //  Copyright 2010 Vicente J. Botet Escriba
4
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  See http://www.boost.org/LICENSE_1_0.txt
7
8
9 #ifndef BOOST_DETAIL_WIN_SYSTEM_HPP
10 #define BOOST_DETAIL_WIN_SYSTEM_HPP
11 #include <boost/config.hpp>
12 #include <cstdarg>
13
14 #include <boost/detail/win/basic_types.hpp>
15 extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *);
16
17 namespace boost {
18 namespace detail {
19 namespace win32 {
20 #if defined( BOOST_USE_WINDOWS_H )
21     typedef ::SYSTEM_INFO SYSTEM_INFO_;
22 #else
23 extern "C" {
24     typedef struct _SYSTEM_INFO {
25       union {
26         DWORD_  dwOemId;
27         struct {
28           WORD_ wProcessorArchitecture;
29           WORD_ wReserved;
30         } dummy;
31       } ;
32       DWORD_     dwPageSize;
33       LPVOID_    lpMinimumApplicationAddress;
34       LPVOID_    lpMaximumApplicationAddress;
35       DWORD_PTR_ dwActiveProcessorMask;
36       DWORD_     dwNumberOfProcessors;
37       DWORD_     dwProcessorType;
38       DWORD_     dwAllocationGranularity;
39       WORD_      wProcessorLevel;
40       WORD_      wProcessorRevision;
41     } SYSTEM_INFO_;
42
43     __declspec(dllimport) void __stdcall 
44         GetSystemInfo (struct system_info *);
45 }    
46 #endif
47 }
48 }
49 }
50 #endif // BOOST_DETAIL_WIN_TIME_HPP