So if you have either brand computer you should call the manufacturer prior to using a non factory battery and make sure your model isn't one of the affected models...
I would imagine just measuring the battery would give you the best bet! Or carefully compare the new and old battery...