Skip to content

Commit

Permalink
Merge pull request qminer#628 from blazf/master
Browse files Browse the repository at this point in the history
Removed unused code that causes GCC issues
  • Loading branch information
blazf authored Aug 20, 2018
2 parents 8e8c78e + 4e39104 commit d98cef0
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions src/glib/base/bd.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
Expand All @@ -11,40 +11,6 @@
#include <signal.h>
#endif

/////////////////////////////////////////////////
// Mathmatical-Errors
#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__==0x0530)
int std::_matherr(struct math_exception* e){
e->retval=0;
return 1;
}
#elif defined(GLib_GLIBC) || defined(GLib_BSD)
int _matherr(struct __exception* e){
e->retval=0;
return 1;
}
#elif defined(GLib_SOLARIS)
int _matherr(struct __math_exception* e){
e->retval=0;
return 1;
}
#elif defined(GLib_CYGWIN)
int matherr(struct __exception *e){
e->retval=0;
return 1;
}
#elif defined(GLib_MACOSX)
//int matherr(struct exception *e) {
// e->retval=0;
// return 1;
//}
#else
int _matherr(struct _exception* e){
e->retval=0;
return 1;
}
#endif

/////////////////////////////////////////////////
// Messages
void WrNotify(const char* CaptionCStr, const char* NotifyCStr){
Expand Down

0 comments on commit d98cef0

Please sign in to comment.