Fix a clash (for_each) with c++ standard libraries. (nw)

This commit is contained in:
couriersud 2015-06-19 21:05:10 +02:00
parent 1314fc9823
commit 3d6498c7e7
2 changed files with 2 additions and 3 deletions

View File

@ -39,7 +39,8 @@
#include "wavwrite.h"
#include "discrete.h"
/* for_each collides with c++ standard libraries - include it here */
#define for_each(_T, _e, _l) for (_T _e = (_l)->begin_ptr() ; _e <= (_l)->end_ptr(); _e++)
// device type definition
const device_type DISCRETE = &device_creator<discrete_sound_device>;

View File

@ -3747,8 +3747,6 @@ enum
*
*************************************/
#define for_each(_T, _e, _l) for (_T _e = (_l)->begin_ptr() ; _e <= (_l)->end_ptr(); _e++)
/*
* add and delete may be slow - the focus is on access!
*/