|
|
@ -334,11 +334,13 @@ There are three packages you want to get hold of: zlib, jpeg and pthreads.
|
|
|
|
The latter is not strictly necessary, but when you put something like this
|
|
|
|
The latter is not strictly necessary, but when you put something like this
|
|
|
|
into your source:
|
|
|
|
into your source:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
#define MUTEX(s)
|
|
|
|
#define MUTEX(s)
|
|
|
|
struct {
|
|
|
|
struct {
|
|
|
|
int something;
|
|
|
|
int something;
|
|
|
|
MUTEX(latex);
|
|
|
|
MUTEX(latex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Microsoft's C++ compiler doesn't do it. It complains that this is an error.
|
|
|
|
Microsoft's C++ compiler doesn't do it. It complains that this is an error.
|
|
|
|
This, however, is how I implemented mutexes in case you don't need pthreads,
|
|
|
|
This, however, is how I implemented mutexes in case you don't need pthreads,
|
|
|
|