Bug 794510: Part 3 - create NSPRFormatTime.h with temporarily undef'd NO_NSPR_10_SUPPORT for compatibility; r=ehsan

This commit is contained in:
Isaac Aggrey 2012-10-11 13:16:29 -05:00
parent 2e0526c0c4
commit 6058184f25
13 changed files with 21 additions and 7 deletions

View File

@ -7,6 +7,7 @@
* This code is based on original Mozilla gnome-vfs extension. It implements
* input stream provided by GVFS/GIO.
*/
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "mozilla/ModuleUtils.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"

View File

@ -5,6 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsJARInputStream.h"
#include "zipstruct.h" // defines ZIP compression codes
#include "nsZipArchive.h"

View File

@ -14,6 +14,7 @@
*/
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsEscape.h"
#include "nsDirectoryIndexStream.h"
#include "nsXPIDLString.h"

View File

@ -10,6 +10,7 @@
#define FORCE_PR_LOG // Allow logging in the release build
#endif
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "mozilla/net/CookieServiceChild.h"
#include "mozilla/net/NeckoCommon.h"
@ -38,7 +39,6 @@
#include "nsAutoPtr.h"
#include "nsReadableUtils.h"
#include "nsCRT.h"
#include "prtime.h"
#include "prprf.h"
#include "nsNetUtil.h"
#include "nsNetCID.h"

View File

@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsTraceRefcntImpl.h"
// if NS_BUILD_REFCNT_LOGGING isn't defined, don't try to build
@ -14,7 +15,6 @@
#include "nsStringStream.h"
#include "nsXPIDLString.h"
#include "nsIURI.h"
#include "prtime.h"
#include "nsCOMPtr.h"
#include "nsIFileStreams.h"
#include "nsNetUtil.h"

View File

@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsAboutCache.h"
#include "nsIIOService.h"
#include "nsIServiceManager.h"
@ -13,7 +14,6 @@
#include "nsIURI.h"
#include "nsCOMPtr.h"
#include "nsNetUtil.h"
#include "prtime.h"
#include "nsEscape.h"
#include "nsICacheService.h"

View File

@ -5,6 +5,7 @@
#include <limits.h>
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsAboutCacheEntry.h"
#include "nsICacheService.h"
#include "nsICacheSession.h"
@ -12,7 +13,6 @@
#include "nsNetUtil.h"
#include "nsAutoPtr.h"
#include "prprf.h"
#include "prtime.h"
#include "nsEscape.h"
#define HEXDUMP_MAX_ROWS 16

View File

@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsFTPDirListingConv.h"
#include "nsMemory.h"
#include "plstr.h"

View File

@ -12,6 +12,7 @@
-Gagan Saksena 04/29/99
*/
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "TestCommon.h"
#define FORCE_PR_LOG
@ -56,7 +57,6 @@
#include "nsStringAPI.h"
#include "nsNetUtil.h"
#include "prlog.h"
#include "prtime.h"
using namespace mozilla;

View File

@ -19,6 +19,7 @@
*/
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsCOMPtr.h"
#include "nsIRDFDataSource.h"
#include "nsIRDFNode.h"
@ -32,7 +33,6 @@
#include "nsString.h"
#include "nsXPIDLString.h"
#include "nsUnicharUtils.h"
#include "prtime.h"
#include "rdfutil.h"
////////////////////////////////////////////////////////////////////////

View File

@ -6,11 +6,11 @@
#undef NO_NSPR_10_SUPPORT
#endif
#include "NSPRFormatTime.h" // must include before any headers that include prtime.h
#include "nsAppRunner.h"
#include "prio.h"
#include "prprf.h"
#include "prtime.h"
#include "prenv.h"
#include "nsCRT.h"

View File

@ -66,6 +66,7 @@ EXPORTS = \
nsWeakPtr.h \
nsInterfaceRequestorAgg.h \
nsGZFileWriter.h \
NSPRFormatTime.h \
$(NULL)
EXPORTS_NAMESPACES = mozilla

View File

@ -0,0 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Temporarily undefine to build successfully with NO_NSPR_10_SUPPORT
#undef NO_NSPR_10_SUPPORT
#include "prtime.h"
#define NO_NSPR_10_SUPPORT