diff --git a/mozilla/xpcom/ds/nsQuickSort.cpp b/mozilla/xpcom/ds/nsQuickSort.cpp index 9ec22e6247e..36e25e6a511 100644 --- a/mozilla/xpcom/ds/nsQuickSort.cpp +++ b/mozilla/xpcom/ds/nsQuickSort.cpp @@ -41,6 +41,8 @@ #include "prtypes.h" #include "nsQuickSort.h" +NS_BEGIN_EXTERN_C + #if !defined(DEBUG) && (defined(__cplusplus) || defined(__gcc)) # ifndef INLINE # define INLINE inline @@ -180,3 +182,5 @@ loop: SWAPINIT(a, es); } /* NS_QuickSort(pn - r, r / es, es, cmp, data);*/ } + +NS_END_EXTERN_C diff --git a/mozilla/xpcom/glue/nsQuickSort.cpp b/mozilla/xpcom/glue/nsQuickSort.cpp index 9ec22e6247e..36e25e6a511 100644 --- a/mozilla/xpcom/glue/nsQuickSort.cpp +++ b/mozilla/xpcom/glue/nsQuickSort.cpp @@ -41,6 +41,8 @@ #include "prtypes.h" #include "nsQuickSort.h" +NS_BEGIN_EXTERN_C + #if !defined(DEBUG) && (defined(__cplusplus) || defined(__gcc)) # ifndef INLINE # define INLINE inline @@ -180,3 +182,5 @@ loop: SWAPINIT(a, es); } /* NS_QuickSort(pn - r, r / es, es, cmp, data);*/ } + +NS_END_EXTERN_C