diff --git a/src/widgets/ProgressDialog.cpp b/src/widgets/ProgressDialog.cpp
index c81c69b9598948534b2dfbd2258103e37337a58c..59a05e5ff71eb8b305a97e8d6662bd2228d59b42 100644
a
|
b
|
|
50 | 50 | #include "ProgressDialog.h" |
51 | 51 | #include "../Prefs.h" |
52 | 52 | |
| 53 | #ifdef __WXOSX_COCOA__ |
| 54 | extern "C" void NSBeep(void); |
| 55 | #endif |
| 56 | |
53 | 57 | // This really should be a Preferences setting |
54 | 58 | static const unsigned char beep[] = |
55 | 59 | { |
… |
… |
void ProgressDialog::Beep() const |
1546 | 1550 | |
1547 | 1551 | if (name.IsEmpty()) |
1548 | 1552 | { |
| 1553 | #ifdef __WXOSX_COCOA__ |
| 1554 | // wxSound::Create(size_t,const void*) isn't implemented; |
| 1555 | // use the system beep function. |
| 1556 | NSBeep(); |
| 1557 | #else |
1549 | 1558 | s.Create(sizeof(beep), beep); |
| 1559 | #endif |
1550 | 1560 | } |
1551 | 1561 | else |
1552 | 1562 | { |