Bug 937751 - Followup to compile with clang versions that treat |struct S; struct __attribute__((visibility("default"))) S {};| as an error. rs=mccr8

--HG--
extra : rebase_source : 97d6faaaa484a9544d2683c4a1af5c3e044fa2d3
This commit is contained in:
Jeff Walden 2013-12-03 15:53:40 -08:00
parent 579513aaf3
commit fd8d240cfd
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,8 @@
#ifndef js_SliceBudget_h
#define js_SliceBudget_h
#include <stdint.h>
namespace js {
/*
@ -15,7 +17,8 @@ namespace js {
* unlimited time, and others are bounded. To reduce the number of gettimeofday
* calls, we only check the time every 1000 operations.
*/
struct JS_PUBLIC_API(SliceBudget) {
struct JS_PUBLIC_API(SliceBudget)
{
int64_t deadline; /* in microseconds */
intptr_t counter;

View File

@ -16,6 +16,7 @@
#include "jsobj.h"
#include "js/GCAPI.h"
#include "js/SliceBudget.h"
#include "js/Tracer.h"
#include "js/Vector.h"
@ -39,7 +40,6 @@ class PropertyName;
class ScopeObject;
class Shape;
class UnownedBaseShape;
struct SliceBudget;
unsigned GetCPUCount();