diff options
Diffstat (limited to 'src/include/gauger.h')
-rw-r--r-- | src/include/gauger.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/include/gauger.h b/src/include/gauger.h index d23883742..562208e1f 100644 --- a/src/include/gauger.h +++ b/src/include/gauger.h | |||
@@ -11,8 +11,6 @@ | |||
11 | #ifndef __GAUGER_H__ | 11 | #ifndef __GAUGER_H__ |
12 | #define __GAUGER_H__ | 12 | #define __GAUGER_H__ |
13 | 13 | ||
14 | #ifndef WINDOWS | ||
15 | |||
16 | #include <unistd.h> | 14 | #include <unistd.h> |
17 | #include <stdio.h> | 15 | #include <stdio.h> |
18 | #include <sys/wait.h> | 16 | #include <sys/wait.h> |
@@ -79,32 +77,4 @@ | |||
79 | } \ | 77 | } \ |
80 | } | 78 | } |
81 | 79 | ||
82 | #else /* WINDOWS */ | ||
83 | |||
84 | #include <stdlib.h> | ||
85 | #include <stdio.h> | ||
86 | #include <windef.h> | ||
87 | |||
88 | #define GAUGER(category, counter, value, unit) \ | ||
89 | { \ | ||
90 | char __gauger_commandline[MAX_PATH]; \ | ||
91 | \ | ||
92 | snprintf(__gauger_commandline, MAX_PATH, "gauger.py -n \"%s\" -d \"%Lf\" -u \"%s\" -c \"%s\"", \ | ||
93 | (counter), (long double)(value), (unit), (category)); \ | ||
94 | __gauger_commandline[MAX_PATH - 1] = '\0'; \ | ||
95 | system(__gauger_commandline); \ | ||
96 | } | ||
97 | |||
98 | #define GAUGER_ID(category, counter, value, unit, id) \ | ||
99 | { \ | ||
100 | char __gauger_commandline[MAX_PATH]; \ | ||
101 | \ | ||
102 | snprintf(__gauger_commandline, MAX_PATH, "gauger.py -n \"%s\" -d \"%Lf\" -u \"%s\" -i \"%s\" -c \"%s\"", \ | ||
103 | (counter), (long double)(value), (unit), (id), (category)); \ | ||
104 | __gauger_commandline[MAX_PATH - 1] = '\0'; \ | ||
105 | system(__gauger_commandline); \ | ||
106 | } | ||
107 | |||
108 | #endif // WINDOWS | ||
109 | |||
110 | #endif | 80 | #endif |