'#include <event2/event.h>\n'
'#include <event2/buffer.h>\n'
'#include <event2/tag.h>\n\n'
- '#ifdef EVENT____func__\n'
+ '#if defined(EVENT____func__) && !defined(__func__)\n'
'#define __func__ EVENT____func__\n'
'#endif\n\n'
)
#include <event2/event.h>
-#ifdef EVENT____func__
-#define __func__ EVENT____func__
-#endif
-
int called = 0;
static void
{
struct event *signal = arg;
- printf("%s: got signal %d\n", __func__, event_get_signal(signal));
+ printf("signal_cb: got signal %d\n", event_get_signal(signal));
if (called >= 2)
event_del(signal);
#include "event2/event-config.h"
-#ifdef EVENT____func__
-#define __func__ EVENT____func__
-#endif
-
#if 0
#include <sys/types.h>
#include <sys/stat.h>
#include <event.h>
#include <evutil.h>
-#ifdef EVENT____func__
-#define __func__ EVENT____func__
-#endif
-
struct timeval timeout = {3, 0};
static void
#include <event.h>
#include <evutil.h>
-#ifdef EVENT____func__
-#define __func__ EVENT____func__
-#endif
-
int test_okay = 1;
int called = 0;
struct timeval timeout = {60, 0};
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "../util-internal.h"
#include "event2/event-config.h"
#ifdef _WIN32
#include "event2/event_compat.h"
#include "event2/util.h"
-#ifdef EVENT____func__
-#define __func__ EVENT____func__
-#endif
-
evutil_socket_t pair[2];
int test_okay = 1;
int called = 0;
#ifdef EVENT__inline
#define inline EVENT__inline
#endif
-#ifdef EVENT____func__
+#if defined(EVENT____func__) && !defined(__func__)
#define __func__ EVENT____func__
#endif