The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
desktop
version.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2015 - 2016 by Ignacio Riquelme Morelle <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY.
11
12
See the COPYING file for more details.
13
*/
14
15
/**
16
* @file
17
* Platform identification and version information functions.
18
*/
19
20
#ifndef DESKTOP_VERSION_HPP_INCLUDED
21
#define DESKTOP_VERSION_HPP_INCLUDED
22
23
#include <string>
24
25
namespace
desktop
26
{
27
28
/**
29
* Returns a string with the running OS name and version information.
30
*
31
* On Windows, this is a string we generate ourselves by processing
32
* GetVersionEx's output. On OS X and Linux, this is the output of a command
33
* provided by the OS if available; failing that (and on other Unixes as well),
34
* we use the uname system call, which is hardly ever useful.
35
*/
36
std::string
os_version
();
37
38
}
39
40
#endif
desktop
Definition:
clipboard.cpp:36
desktop::os_version
std::string os_version()
Returns a string with the running OS name and version information.
Definition:
version.cpp:118
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
Generated by
1.8.8