Enable deprecations.

In addition, use a more common style in the preprocessor condition, making
e.g. '-DV8_ENABLE_DEPRECATIONS=0' do the expected thing. Removed a useles

Review URL: https://codereview.chromium.org/11413113

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13024 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 36f5b6d4
......@@ -76,12 +76,9 @@
#endif // _WIN32
// TODO(svenpanne) Remove this when the Chrome's v8 bindings have been adapted.
#define V8_DISABLE_DEPRECATIONS 1
#if defined(__GNUC__) && !defined(V8_DISABLE_DEPRECATIONS)
#if defined(__GNUC__) && !V8_DISABLE_DEPRECATIONS
#define V8_DEPRECATED(func) func __attribute__ ((deprecated))
#elif defined(_MSC_VER) && !defined(V8_DISABLE_DEPRECATIONS)
#elif defined(_MSC_VER) && !V8_DISABLE_DEPRECATIONS
#define V8_DEPRECATED(func) __declspec(deprecated) func
#else
#define V8_DEPRECATED(func) func
......
......@@ -25,9 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Deprecated API entries use other deprecated entries, too.
#define V8_DISABLE_DEPRECATIONS 1
#include "api.h"
#include <math.h> // For isnan.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment