/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#include "SkRefCnt.h"
#include "SkWeakRefCnt.h"

SK_DEFINE_INST_COUNT(SkRefCnt)
SK_DEFINE_INST_COUNT(SkWeakRefCnt)

#ifdef SK_BUILD_FOR_WIN
SkRefCnt::SkRefCnt(const SkRefCnt&) { }
SkRefCnt& SkRefCnt::operator=(const SkRefCnt&) { return *this; }
#endif


/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#include "SkRefCnt.h"
#include "SkWeakRefCnt.h"

SK_DEFINE_INST_COUNT(SkRefCnt)
SK_DEFINE_INST_COUNT(SkWeakRefCnt)

SkRefCnt::SkRefCnt(const SkRefCnt&) { }

SkRefCnt::operator=(const SkRefCnt&) { }


--- 
+++ 
@@ -12,7 +12,8 @@
 SK_DEFINE_INST_COUNT(SkRefCnt)
 SK_DEFINE_INST_COUNT(SkWeakRefCnt)
 
+#ifdef SK_BUILD_FOR_WIN
 SkRefCnt::SkRefCnt(const SkRefCnt&) { }
+SkRefCnt& SkRefCnt::operator=(const SkRefCnt&) { return *this; }
+#endif
 
-SkRefCnt::operator=(const SkRefCnt&) { }
-
Build fix fo windows only

Build fix

git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@11828 2bbb7eff-a529-9590-31e7-b0007b416f81
