1os_version(3) Allegro manual os_version(3)
2
3
4
6 os_version, os_revision - Version of the OS currently running. Allegro
7 game programming library.
8
10 #include <allegro.h>
11
12
13 extern int os_version;
14
15 extern int os_revision;
16
18 The major and minor version of the Operating System currently running.
19 Set by allegro_init(). If Allegro for some reason was not able to
20 retrieve the version of the Operating System, os_version and os_revi‐
21 sion will be set to -1. For example: Under Win98 SE (v4.10.2222)
22 os_version will be set to 4 and os_revision to 10.
23
24
26 os_type(3), os_multitasking(3)
27
28
29
30Allegro version 4.4.3 os_version(3)