The Battle for Wesnoth
1.15.11+dev
desktop
version.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2015 - 2018 by Iris Morelle <shadowm2006@gmail.com>
3
Part of the Battle for Wesnoth Project https://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
#pragma once
21
22
#include <string>
23
24
namespace
desktop
25
{
26
27
/**
28
* Returns a string with the running OS name and version information.
29
*
30
* On Windows, this is a string we generate ourselves by processing
31
* GetVersionEx's output. On OS X and Linux, this is the output of a command
32
* provided by the OS if available; failing that (and on other Unixes as well),
33
* we use the uname system call, which is hardly ever useful.
34
*/
35
std::string
os_version
();
36
37
}
desktop
Definition:
apple_battery_info.hpp:19
desktop::os_version
std::string os_version()
Returns a string with the running OS name and version information.
Definition:
version.cpp:208
Generated by
1.8.13