| 155 | #endif |
| 156 | |
| 157 | static void |
| 158 | once(once_t *once_control, void init_routine(void)) |
| 159 | { |
| 160 | #if THREAD_SAFE |
| 161 | pthread_once(once_control, init_routine); |
| 162 | #else |
| 163 | if (!*once_control) { |
| 164 | *once_control = true; |
| 165 | init_routine(); |
| 166 | } |
| 167 | #endif |
| 168 | } |
| 169 | |
| 170 | enum tm_multi { LOCALTIME_TM_MULTI, GMTIME_TM_MULTI, OFFTIME_TM_MULTI }; |
| 171 |