summaryrefslogtreecommitdiffstats
path: root/o3d/gpu_plugin/np_utils/np_headers.h
blob: 49e496c37d5bbb924d00184c5f2f204fdf858f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef O3D_GPU_PLUGIN_NP_UTILS_NP_HEADERS_H_
#define O3D_GPU_PLUGIN_NP_UTILS_NP_HEADERS_H_

// This is a hack to work around the differing definitions of NPString in the
// Chrome and O3D NPAPI headers.
#define utf8characters UTF8Characters
#define utf8length UTF8Length
// Deliberately not including a directory name because Chromium and O3D put
// these headers in different directories.
#include "npapi.h"
#include "npruntime.h"
#undef utf8characters
#undef utf8length

#if defined(O3D_IN_CHROME)
#include "webkit/glue/plugins/nphostapi.h"
#else
#include "npupp.h"
#endif

#endif  // O3D_GPU_PLUGIN_NP_UTILS_NP_HEADERS_H_