* Fix a bug on the xpath query. It was talking all nodes, even the one from
[scilab.git] / scilab / modules / core / includes / getos.h
1 /*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009 - DIGITEO - Allan CORNET
4 *
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution.  The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 *
11 */
12
13 /*--------------------------------------------------------------------------*/
14 #ifndef __GETOS_H__
15 #define __GETOS_H__
16
17 #ifdef OSNAME
18 #undef OSNAME
19 #endif
20
21 #ifdef __APPLE__
22 #define OSNAME "macosx"
23 #else
24 #ifdef __linux__
25 #define OSNAME "linux"
26 #else
27 #ifdef _MSC_VER
28 #define OSNAME "windows"
29 #else
30 #define OSNAME "other"
31 #endif
32 #endif
33 #endif
34 /*--------------------------------------------------------------------------*/
35
36 /**
37 * get OS Full name based on uname
38 * @return a string
39 */
40 char *getOSFullName(void);
41
42 /**
43 * get OS Release Info
44 * @return a string
45 */
46 char *getOSRelease(void);
47
48 /*--------------------------------------------------------------------------*/
49 #endif /* __GETOS_H__ */