From ff01627a7ce7dac83541842ae5328ad1792079e2 Mon Sep 17 00:00:00 2001
From: "ftang%netscape.com" <ftang%netscape.com>
Date: Wed, 17 Feb 1999 15:30:26 +0000
Subject: [PATCH]  add CID for lwbrk

---
 webshell/embed/ActiveX/makefile.win       | 1 +
 webshell/src/makefile.win                 | 1 +
 webshell/tests/viewer/makefile.win        | 1 +
 webshell/tests/viewer/nsSetupRegistry.cpp | 8 ++++++++
 xpfe/bootstrap/makefile.win               | 1 +
 5 files changed, 12 insertions(+)

diff --git a/webshell/embed/ActiveX/makefile.win b/webshell/embed/ActiveX/makefile.win
index 8cfa604b76847..80ecbc03b36c8 100644
--- a/webshell/embed/ActiveX/makefile.win
+++ b/webshell/embed/ActiveX/makefile.win
@@ -69,6 +69,7 @@ LINCS=  \
   -I$(PUBLIC)\uconv \
   -I$(PUBLIC)\intl \
   -I$(PUBLIC)\locale \
+  -I$(PUBLIC)\lwbrk \
   -I$(PUBLIC)\unicharutil \
   -I$(PUBLIC)\pref \
   -I$(PUBLIC)\rdf
diff --git a/webshell/src/makefile.win b/webshell/src/makefile.win
index 8fcb26688b3ee..9779e08074f77 100644
--- a/webshell/src/makefile.win
+++ b/webshell/src/makefile.win
@@ -49,6 +49,7 @@ LINCS=-I..\public -I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor \
       -I$(PUBLIC)\uconv \
       -I$(PUBLIC)\strres \
       -I$(PUBLIC)\locale \
+      -I$(PUBLIC)\lwbrk \
       -I$(PUBLIC)\unicharutil \
       -I$(PUBLIC)\intl \
       -I$(PUBLIC)\caps
diff --git a/webshell/tests/viewer/makefile.win b/webshell/tests/viewer/makefile.win
index 3f29930b705c7..19586bb103d04 100644
--- a/webshell/tests/viewer/makefile.win
+++ b/webshell/tests/viewer/makefile.win
@@ -64,6 +64,7 @@ LINCS=  \
   -I$(PUBLIC)\uconv \
   -I$(PUBLIC)\strres \
   -I$(PUBLIC)\locale \
+  -I$(PUBLIC)\lwbrk \
   -I$(PUBLIC)\unicharutil \
   -I$(PUBLIC)\intl \
   -I$(PUBLIC)\rdf \
diff --git a/webshell/tests/viewer/nsSetupRegistry.cpp b/webshell/tests/viewer/nsSetupRegistry.cpp
index d1479200d32d0..37d1e810ea07d 100644
--- a/webshell/tests/viewer/nsSetupRegistry.cpp
+++ b/webshell/tests/viewer/nsSetupRegistry.cpp
@@ -52,6 +52,7 @@
 #include "nsCollationCID.h"
 #include "nsDateTimeFormatCID.h"
 #include "nsLocaleCID.h"
+#include "nsLWBrkCIID.h"
 
 #include "nsIEditor.h"
 
@@ -80,6 +81,7 @@
 #define UNICHARUTIL_DLL   "unicharutil.dll"
 #define BASE_DLL   "raptorbase.dll"
 #define NSLOCALE_DLL "nslocale.dll"
+#define LWBRK_DLL "lwbrk.dll"
 #else
 #ifdef XP_MAC
 #define XPCOM_DLL   "XPCOM_DLL"
@@ -106,6 +108,7 @@
 #define UNICHARUTIL_DLL   "UNICHARUTIL_DLL"
 #define BASE_DLL   "base.shlb"
 #define NSLOCALE_DLL "NSLOCALE_DLL"
+#define LWBRK_DLL "LWBRK_DLL"
 #else
 #define XPCOM_DLL  "libxpcom.so"
 /** Currently CFLAGS  defines WIDGET_DLL and GFXWIN_DLL. If, for some 
@@ -136,6 +139,7 @@
 #define UNICHARUTIL_DLL   "libunicharutil.so"
 #define BASE_DLL     "libraptorbase.so"
 #define NSLOCALE_DLL "libnslocale.so"
+#define LWBRK_DLL "liblwbrk.so"
 #endif
 #endif
 
@@ -220,6 +224,8 @@ static NS_DEFINE_IID(kDateTimeFormatCID,          NS_DATETIMEFORMAT_CID);
 static NS_DEFINE_IID(kLocaleCID,                  NS_LOCALE_CID);
 static NS_DEFINE_IID(kLocaleFactoryCID,           NS_LOCALEFACTORY_CID); // do we need this ???
 
+static NS_DEFINE_IID(kLWBrkCID,                   NS_LWBRK_CID); 
+
 extern "C" void
 NS_SetupRegistry()
 {
@@ -300,6 +306,8 @@ NS_SetupRegistry()
   nsRepository::RegisterFactory(kLocaleCID,               NSLOCALE_DLL, PR_FALSE, PR_FALSE);
   nsRepository::RegisterFactory(kLocaleFactoryCID,        NSLOCALE_DLL, PR_FALSE, PR_FALSE);
 
+  nsRepository::RegisterFactory(kLWBrkCID,        LWBRK_DLL, PR_FALSE, PR_FALSE);
+
   nsRepository::RegisterFactory(kCPluginManagerCID, PLUGIN_DLL,      PR_FALSE, PR_FALSE);
 #if defined(XP_PC) && defined(XP_MAC)
   nsRepository::RegisterFactory(kCapsManagerCID, CAPS_DLL,          PR_FALSE, PR_FALSE);
diff --git a/xpfe/bootstrap/makefile.win b/xpfe/bootstrap/makefile.win
index 2d53fe95d7ec6..c4c69c998dd89 100644
--- a/xpfe/bootstrap/makefile.win
+++ b/xpfe/bootstrap/makefile.win
@@ -46,6 +46,7 @@ LINCS=-I$(PUBLIC)\raptor                \
       -I$(PUBLIC)\uconv                 \
       -I$(PUBLIC)\strres                \
       -I$(PUBLIC)\locale                \
+      -I$(PUBLIC)\lwbrk                \
       -I$(PUBLIC)\unicharutil           \
       -I$(PUBLIC)\intl                  \
       -I$(PUBLIC)\appcores				\
-- 
GitLab