File tree Expand file tree Collapse file tree 5 files changed +36
-1
lines changed Expand file tree Collapse file tree 5 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,13 @@ static int prioritized_sample_rates[] = {
45
45
0 ,
46
46
};
47
47
48
-
48
+ #ifdef _MSC_VER
49
+ __declspec (noreturn )
50
+ #else
49
51
__attribute__ ((cold ))
50
52
__attribute__ ((noreturn ))
51
53
__attribute__ ((format (printf , 1 , 2 )))
54
+ #endif
52
55
static void panic (const char * format , ...) {
53
56
va_list ap ;
54
57
va_start (ap , format );
Original file line number Diff line number Diff line change 12
12
#include <string.h>
13
13
#include <math.h>
14
14
#include <errno.h>
15
+ #ifdef _WIN32
16
+ #include <windows.h>
17
+ #define sleep (n ) Sleep(n * 1000)
18
+ #else
15
19
#include <unistd.h>
20
+ #endif
16
21
17
22
struct RecordContext {
18
23
struct SoundIoRingBuffer * ring_buffer ;
Original file line number Diff line number Diff line change 12
12
#include <stdlib.h>
13
13
#include <string.h>
14
14
#include <math.h>
15
+ #ifdef _WIN32
16
+ #include <windows.h>
17
+ #define sleep (n ) Sleep(n * 1000)
18
+ #else
15
19
#include <unistd.h>
20
+ #endif
16
21
22
+ #ifdef _MSC_VER
23
+ __declspec (noreturn )
24
+ #else
17
25
__attribute__ ((cold ))
18
26
__attribute__ ((noreturn ))
19
27
__attribute__ ((format (printf , 1 , 2 )))
28
+ #endif
20
29
static void panic (const char * format , ...) {
21
30
va_list ap ;
22
31
va_start (ap , format );
Original file line number Diff line number Diff line change 12
12
#include <stdlib.h>
13
13
#include <string.h>
14
14
#include <math.h>
15
+ #ifdef _WIN32
16
+ #include <windows.h>
17
+ #define sleep (n ) Sleep(n * 1000)
18
+ #else
15
19
#include <unistd.h>
20
+ #endif
16
21
17
22
static enum SoundIoFormat prioritized_formats [] = {
18
23
SoundIoFormatFloat32NE ,
@@ -36,9 +41,13 @@ static enum SoundIoFormat prioritized_formats[] = {
36
41
SoundIoFormatInvalid ,
37
42
};
38
43
44
+ #ifdef _MSC_VER
45
+ __declspec (noreturn )
46
+ #else
39
47
__attribute__ ((cold ))
40
48
__attribute__ ((noreturn ))
41
49
__attribute__ ((format (printf , 1 , 2 )))
50
+ #endif
42
51
static void panic (const char * format , ...) {
43
52
va_list ap ;
44
53
va_start (ap , format );
Original file line number Diff line number Diff line change 12
12
#include <stdlib.h>
13
13
#include <string.h>
14
14
#include <math.h>
15
+ #ifdef _WIN32
16
+ #include <windows.h>
17
+ #define sleep (n ) Sleep(n * 1000)
18
+ #else
15
19
#include <unistd.h>
20
+ #endif
16
21
#include <stdint.h>
17
22
23
+ #ifdef _MSC_VER
24
+ __declspec (noreturn )
25
+ #else
18
26
__attribute__ ((cold ))
19
27
__attribute__ ((noreturn ))
20
28
__attribute__ ((format (printf , 1 , 2 )))
29
+ #endif
21
30
static void panic (const char * format , ...) {
22
31
va_list ap ;
23
32
va_start (ap , format );
You can’t perform that action at this time.
0 commit comments